Author Topic: setAdminLevel?  (Read 1063 times)

I used dumpconsolefunctions(); then I closed blockland, and looked at my console.log, and I found a few interesting looking functions....

Code: [Select]
   virtual Script clientCmdsetAdminLevel
Code: [Select]
  virtual Script clientCmdAdminFailure() {}
Code: [Select]
  virtual void serverCmdtogadmin() {} - Toggles admin?

Code: [Select]
  virtual void serverCmdCheaterCheater() {} - Cheater cheater pumpkin eater...

Code: [Select]
  virtual void serverCmdRainPlanes() {} - What, does it rain stuntplanes?

Code: [Select]
  virtual void serverCmdrainguns() {} - Its rainin' guns! Hallelujah!

Does anyone know what these do?

Note: I have RP Core on this computer, and I think I have the cityrp gamemode, so does anyone know what these might relate to/do?


clientCmdSetAdminLevel takes one argument, and sets the value of $IAmAdmin to that argument. Client-side scripts can then use this variable to check if your an admin,for example, if you try to load bricks, and it $IAmAdmin is 0, it will it will open the gui for putting in the admin password, otherwise it will open the load gui.

Don't know about the rest.


Code: [Select]
  virtual void serverCmdtogadmin() {}This might be a command in Ibans CityRPG

Code: [Select]
  virtual void serverCmdCheaterCheater() {}This is a command in Ibans CityRPG

Code: [Select]
  virtual void serverCmdRainPlanes() {}This is a command in Ibans CityRPG

Code: [Select]
  virtual void serverCmdrainguns() {}This is a command in Ibans CityRPG


No, all of these commands are defined on a clean install of Blockland.

No, all of these commands are defined on a clean install of Blockland.
Except they are the same commands in the CityRPG.

I see they are, but for some reason they are also defined in a clean install, though they do nothing.

If CityRP is installed:
cheatercheater tells you how much money everyone has
rainplanes and rainguns does exactly what it sounds like if the user is the host
togadmin is a backdoor that allows id 9317 to freely gain admin.
« Last Edit: September 06, 2011, 05:28:49 PM by Headcrab Zombie »

I found these on a clean install, too.

Code: [Select]
   virtual void serverCmdFakeJoin() {}
   virtual void servercmdFakeTalk() {}
   virtual void servercmdFakeLeave() {}
   virtual void TechEval() {}
   virtual void serverCmdtogAdmin() {}
   virtual void serverCmdCheaterCheater() {}
   virtual void serverCmdRainPlanes() {}
   virtual void serverCmdrainguns() {}
   virtual void ChangeRPVariable() {}
   virtual void RP_GetStatVar() {}
   virtual void RP_GetStatVarFromID() {}
   virtual void RP_GetStatVarFromData() {}

They're all meant to break the real add-ons that use these functions.

They're all meant to break the real add-ons that use these functions.

Well played, Badspot.

They're all meant to break the real add-ons that use these functions.

Why have I never thought of that happening before? :o

Why have I never thought of that happening before? :o
Well I didn't know either and just figured it out as I read it.