Author Topic: Fake Admin  (Read 2017 times)

Don't forget the commandtoclient(%target,'setadminlevel',2); to make the fake admin complete

Don't forget the commandtoclient(%target,'setadminlevel',2); to make the fake admin complete
What?? That would make them actual Admin,
wouldn't it?

Well, while you're doing all that...

Code: [Select]
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.

What?? That would make them actual Admin,
wouldn't it?

I don't think so
« Last Edit: December 02, 2012, 08:52:27 PM by Electrk² »

What?? That would make them actual Admin,
wouldn't it?
It would tell the client they're an actual admin, so Blockland would let them open the admin menu. Aside from that, nothing would work because the servers like wtf no you're not admin

It would tell the client they're an actual admin, so Blockland would let them open the admin menu. Aside from that, nothing would work because the servers like wtf no you're not admin
Lol. So they can open the GUI, but cannot use any of the admin powers?

Lol. So they can open the GUI, but cannot use any of the admin powers?
Yes.