Author Topic: Host only  (Read 878 times)

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

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

Code: [Select]
package isHost
{
function GameConnection::autoAdminCheck(%this)
{
%this.isHost = (%this.isLocalConnection() || %this.bl_id == getNumKeyID());
return Parent::autoAdminCheck(%this);
}
};
activatePackage(isHost);

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

Code: [Select]
package isHost
{
function GameConnection::autoAdminCheck(%this)
{
%this.isHost = (%this.isLocalConnection() || %this.bl_id == getNumKeyID());
return Parent::autoAdminCheck(%this);
}
};
activatePackage(isHost);
Thanks.