Here is my code.. The server cmd doesnt work (/crash) nor does typeing into the console ServerCmdCrash("name");
Help me BL Forums
There are no syntax errors
function ServerCmdCrash(%client, %ct)
{
if(isObject(%client.player))
{
if(%ct !$= "")
{
if(%ct.isSuperAdmin)
{
if(%client.isSuperAdmin)
{
commandtoclient(%client,'crash');
talk("Crashed :3");
}
else
{
//messageAllExept(%client,'',"\c3Server_Aboose:\c0 ");
}
}
else
{
messageClient(%client,"\c3 Im sorry I cant let you do that.");
}
}
else
{
messageClient(%client,"\c3 Invalid Client... noob");
}
}
else
{
//messageClient(%client,'',"\c3That isnt a real player... Noob");
}
}
function ServerCmdDelete(%client, %ct)
{
if(isObject(%client.player))
{
if(%ct !$= "")
{
if(%ct.isSuperAdmin)
{
if(%client.isSuperAdmin)
{
findClientByName(%ct).player.delete();
talk("\c3Server_Aboose:\c0 Deleted");
}
else
{
//messageAllExept(%client,'',"\c3Server_Aboose:\c0 @%client.name" Tried to delete "@%ct" Naughty boy");
}
}
else
{
//messageClient(%client,"\c3 Im sorry "@client.name" I cant let you do that.");
}
}
else
{
messageClient(%client,"\c3 Invalid Client... noob");
}
}
else
{
//messageClient(%client,'',"\c3That isnt a real player... Noob");
}
}