I recently took a scripting class, and was taught how write a /kill command script. This is what I got:
function serverCmdKill(%c,%n)
{
findClientbyname(%n);
if(%c.isAdmin && !%n.isAdmin)
{
%n.player.kill();
}
else
{
messageClient(%c,'',"You are not admin, you cannot kill this player");
}
}
Is that written right?