Server commands always have %client as the first arg.
function serverCmdClearTools(%client,%a,%b,%c,%d,%e,%f,%g)
{
if(!%client.isSuperAdmin)
return;
%name = trim(%a SPC %b SPC %c SPC %d SPC %e SPC %f SPC %g); //we need to string together all the words to find the name
%victim = findClientByName(%name); //We only had their name, so we use this to find their client
%player = %victim.player; //ok, we've found their player
if(isObject(%player)) //let's check to make sure that the player actually exists
{
%player.clearTools(); //clear their tools
messageClient(%victim,'',"Your tools were cleared."); //tell them what happened
}
}
Warning - while you were typing 5 new replies have been posted. You may wish to review your post.
agh