How would I do this?
function serverCmdSetKing(%client, %name)
{
if(%client.isAdmin)
{
%target = findClientByName(%name);
if(isObject(%target))
{
messageall('', "\c6The king was killed and his place was taken.");
%target.Isking = 1;
//Now what would I do to set %target's team to team 3.
}
}
else
{
messageClient(%client, '', "\c6You must be an admin to use this command.");
}
}