Blockland Forums > Modification Help
onActivate if brick owner
(1/1)
jes00:
How do I check if the person is the brick owner with the onActivate function?

--- Code: ---OnActivate(%obj, %player, %client, %pos, %vec)

--- End code ---
Port:
if ( %client == %obj.getGroup().client )
Greek2me:

--- Quote from: Port on December 25, 2011, 08:49:03 AM ---if ( %client == %obj.getGroup().client )

--- End quote ---
That wouldn't work well with multiple clients with the same BL ID.


--- Code: ---if(getTrustLevel(%client,%obj) >= 3)
--- End code ---
That should do the trick.
jes00:

--- Quote from: Greek2me on December 26, 2011, 11:51:07 AM ---That wouldn't work well with multiple clients with the same BL ID.


--- Code: ---if(getTrustLevel(%client,%obj) >= 3)
--- End code ---
That should do the trick.

--- End quote ---
Thanks Greek.
Navigation
Message Index

Go to full version