Allright, that's what I thought, thanks. Now, how about detecting the height of a brick? Also, forcing last wrench GUI clientside?
Edit: Here's what I have so far, but it's full of glitches. I need some help with color codes and displaying variables. Anything else that looks messed up would be nice to point out also.
function serverCmdGiveBlocks(%client, %victim, %amount)
{
if(%client.Blocks<=0)
{
messageClient(%client,"","\c0You do not have any blocks!");
}
else
{
if(%client.Blocks<=%amount)
{
messageClient(%client,"","\c0You do not have that many blocks!");
}
else
{
%victim=findclientbyname(%victim);
if(!isObject(%victim))
{
messageClient(%client,"","\c0That player does not exist.");
}
else
{
%client.Blocks-=%amount;
%victim.Blocks+=%amount;
messageClient(%victim,"","\c0You have recieved %amount from %client.name.");
messageClient(%client,"","\c0You have given %amount to %victim.name.");
}
}
}
}
function serverCmdTestAll(%client)
{
messageClient(%client,"","Name getting test: your name is %client.name");
messageClient(%client,"","Text color test: This word white is \c0white.");
messageClient(%client,"","Variables test: I have added 10 blocks, use blocks command");
%client.blocks+=10;
}
function serverCmdBlocks(%client)
{
messageClient(%client,"","/c0You have %client.blocks blocks!");
}