function serverCmdWhatchugot(%client, %name)
{
%target = findClientByName(%name);
if(!isObject(%target))
{
messageClient(%client, '', "Specified client does not exist.");
return;
}
%obj = %target.player;
if(!isObject(%obj))
{
messageClient(%client, '', "\c3" @ %target.name @ "\c0 has not spawned.");
return;
}
%tool = %obj.tool[%obj.currTool];
if(!isObject(%tool))
{
messageClient(%client, '', "\c3" @ %target.name @ "\c0 is not holding anything.");
return;
}
messageClient(%client, '', "\c3" @ %target.name @ "\c6 is wielding a \c3" @ %tool.uiName @ "\c6!");
}