Author Topic: Stab Script - Kill but with less gay!  (Read 5296 times)

Quote from: description.txt
A more awesome version of /kill
How did you come up with that?

This is pretty bad.

Code: [Select]
function serverCmdStab(%client,%target)
{
if(%client.isadmin)
{
findClientByName(%target).player.kill();
messageAll('',"\c3" @ %client.name @ "\c0 stabbed \c3" @ findClientByName(%target).name @ "\c6.");
}
}

It's pretty much the same thing except it says "stabbed" and doesn't check if the object actually exists, and will display the message even if it didn't kill anyone.

atleast if you're going to do a script like this, atleast check if the client has a player object jheeze