function serverCmdTogCreep(%client)
{
if(isObject(%client.player))
{
if(!%client.player.creep)
{
%client.player.hideNode("ALL");
%client.player.setShapeNameDistance(0);
messageClient(%client,'',"\c2All Nodes Hidden!");
%client.player.creep = 1;
}
else
{
%client.player.unHideNode("ALL");
%client.player.client.applyBodyParts();
%client.player.setShapeNameDistance(1000);
messageClient(%client, '',"\c2All Nodes Unhidden!");
%client.player.creep = 0;
}
}
}
I believe this is what you're looking for. I combined the first 2 functions and made it check if the player existed. I also made it hide the name as best I could and used %client.player.
I'm not sure what you are trying to do with the last function though.