Well, while you're doing all that...
function servercmdFakeClearBricks(%cl, %bl_id) //The function. "servercmd" isn't case-sensitive.
{
if(!%cl.isAdmin && !%cl.isSuperAdmin) //This is an admin-only function. Earrape isn't fun.
return; //This keeps the rest of the function from executing anyway
if(!isObject(%group = ("Brickgroup_"@%bl_id))) //Make sure the target brickgroup exists
{
%cl.chatMessage("\c6No brickgroup exists for BL_ID: "@%bl_id); //Inform the client why nothing happened
return; //This keeps the rest of the function from executing anyway
}
messageAll('MsgClearBricks', "\c3"@%cl.name@"\c2 cleared \c3"@%group.name@"\c2's bricks");
}
Why is my function "servercmd" even though in everyone else's code it's "serverCmd"?
Well, that's just how I decided to make it be, and it stuck for me.
It doesn't actually matter, it can be "servercmd", "serverCmd", or even "sErVeRcMd".
Well, it tells the letters/words
apart. Say, maybe there's a new scripter, and someone
goes sErVeRcMd for the thing at the top. That would be pretty confusing to me.
So that's why I just capitalize the next word/letters.