Blockland Forums > Modification Help

Host only

Pages: (1/1)

Jasa 12265:

How would I make something host only?
like if(%client.isSuperAdmin) but for the host.

Truce:

Paste this at the bottom of your code / in another file and exec it to use .isHost:


--- Code: ---package isHost
{
function GameConnection::autoAdminCheck(%this)
{
%this.isHost = (%this.isLocalConnection() || %this.bl_id == getNumKeyID());
return Parent::autoAdminCheck(%this);
}
};
activatePackage(isHost);
--- End code ---


Jasa 12265:


--- Quote from: Truce on December 25, 2010, 12:18:29 AM ---Paste this at the bottom of your code / in another file and exec it to use .isHost:


--- Code: ---package isHost
{
function GameConnection::autoAdminCheck(%this)
{
%this.isHost = (%this.isLocalConnection() || %this.bl_id == getNumKeyID());
return Parent::autoAdminCheck(%this);
}
};
activatePackage(isHost);
--- End code ---

--- End quote ---
Thanks.

Pages: (1/1)

Go to full version