I want to know whats up, I'll post the whole script here. Also, I want to know if I got the if(!isObject(%target.player)) part right so that it references the fact that they are spawned or not. Please post help if I got that wrong!
package kill
{
function servercmdkill(%client, %user)
{
if(%client.isSuperAdmin == false)
{
messageClient(%client, '', '\c6You must be a super admin to use this command.');
return;
}
if(!isObject(%target.player))
{
messageClient(%client, '', '\c6That player hasn't spawned yet!', %user);
return;
}
if(%user !$= "")
{
%target = findClientByName(%user).player;
%targetC = findClientByName(%user);
%target.kill();
messageAll("",'\c3%1 \c6was force killed by \c3%2', %targetC.name, %client.name);
messageClient(%targetC, '', '\c3%1 \c6has force killed you.', %client.name);
}
}
};
ActivatePackage(kill);