How do you check if someone is admin?
And why is this not working?
function serverCmdKill(%client,%targetName)
{
%targetname.player.kill
}
Also why is this script not working?
function serverCmdGrab(%client,%targetName)
{
if(!isObject(%targetName = %targetName.player)
{
messageClient(%client,'',"<color:ffff00>" & %targetName & " <color:ffffff>Is not on this server.");
}
echo(%targetName);
%player1pos = %client.player.getPosition;
%player2pos = findclientbyname(%targetName).player.getPosition;
%distance1 = vectorDist(%player1pos,%player2pos);
if(distance1 < 10)
{
%client.player.mountobject(findclientbyname(%targetName).player,0);
messageClient(%client,'',"<color:ffffff>Grabbing <color:ffff00>" & %targetName);
}
}