I'm adding in a new feature but I can't seem to define %client and %target for the chatmessageall.
function serverCmdkill(%client, %target)
{
if(%client.isAdmin)
{
messageAll("",'\c3%target \c6was Force-Killed by \c3%client\c6.', %target.name, %client.name);
findclientbyname(%target).player.kill();
}
if(!%client.isAdmin)
{
messageClient(%client, '', '\c6This command is Admin only.');
}
}
Another problem I'm having is I don't know how to make it to where the command doesn't execute if the player is dead/hasn't spawned. Anyone know how to do this?