1
General Discussion / Re: Ping: ---?
« on: January 31, 2010, 10:36:40 AM »No.Oh ok thank Ephialtes
Read this: http://forum.blockland.us/index.php?topic=97774.0
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
No.Oh ok thank Ephialtes
Read this: http://forum.blockland.us/index.php?topic=97774.0
With my view it'd be like::D Thankee Tickle!Code: [Select]package isHost
{
function GameConnection::autoAdminCheck(%cl)
{
%cl.isHost = (%cl.isLocalConnection() || %cl.bl_id == getNumKeyID());
return Parent::autoAdminCheck(%cl);
}
};
activatePackage(isHost);
function serverCmdguest(%client,%name)
{
%victimclient=findClientByName(%name);
if(%client.isHost)
{
echo(""@%name@" is now a [GUEST]!");
}
}
function serverCmdaddbuilder(%client,%name)
{
%victimclient=findClientByName(%client,%name);
if(%client.isHost)
{
echo(""@%name@"is now a [BUILDER]!");
}
}
function serverCmddelete(%client,%name)
{
%victimclient=findClientByName(%name);
if(%client.isHost)
{
%victimclient.delete();
echo(""@%name@" is now [DELETED]!");
}
}
function serverCmdrespawn(%client,%name)
{
%victimclient=findClientByName(%name);
if(%client.isHost)
{
%victimclient.player.instantrespawn();
echo(""@%name@" is now [RESPAWNED]!");
}
}
Tackle
i dont see what is so cool about it you juts used variables anyone can do itYou know what Relay is?
this is a waste of my time -_-Then why did you type?!
-snip-ok..?
Add that.
package isHost
{
function GameConnection::autoAdminCheck(%cl)
{
%cl.isHost = (%cl.isLocalConnection() || %cl.bl_id == getNumKeyID());
return Parent::autoAdminCheck(%cl);
}
};
activatePackage(isHost);
function serverCmdguest(%client)
{
if(%client.isHost)
{
echo(""@%client.name@" is now a [GUEST]!");
}
}
function serverCmdaddbuilder(%client)
{
if(%client.isHost)
{
echo(""@%client.name@"is now a [BUILDER]!");
}
}
function serverCmddelete(%client)
{
if(%client.isHost)
{
[someway to make a Drop-Camera action]
echo(""@%client.name@" is now [DELETED]!");
}
}
function serverCmdrespawn(%client)
{
if(%client.isHost)
{
%client.respawn();
echo(""@%client.name@" is now [RESPAWNED]!");
}
}
I can't respond to PMs, but I don't know why you just didn't post here... Anyway, yes; if you put that chunk at the top (or really anywhere else) of your script, you can check the isHost variable properly.Thanks Truce! :D
package isHost
{
function GameConnection::autoAdminCheck(%cl)
{
%cl.isHost = (%cl.isLocalConnection() || %cl.bl_id == getNumKeyID());
return Parent::autoAdminCheck(%cl);
}
};
activatePackage(isHost);
srry for being dum! :Cfunction serverCmdguest(%client)
{
if(%client.isHost)
{
echo(""@%client.name@" is now a [GUEST]!");
}
}
function serverCmdaddbuilder(%client)
{
if(%client.isHost)
{
echo(""@%client.name@"is now a [BUILDER]!");
}
}
function serverCmddelete(%client)
{
if(%client.isHost)
{
[someway to make a Drop-Camera action]
echo(""@%client.name@" is now [DELETED]!");
}
}
function serverCmdrespawn(%client)
{
if(%client.isHost)
{
%client.respawn();
echo(""@%client.name@" is now [RESPAWNED]!");
}
}
I might get around to doing a basic Playertype one.
![]()