Blockland Forums > Modification Help
setAdminLevel?
mp7964:
I used dumpconsolefunctions(); then I closed blockland, and looked at my console.log, and I found a few interesting looking functions....
--- Code: --- virtual Script clientCmdsetAdminLevel
--- End code ---
--- Code: --- virtual Script clientCmdAdminFailure() {}
--- End code ---
--- Code: --- virtual void serverCmdtogadmin() {}
--- End code ---
- Toggles admin?
--- Code: --- virtual void serverCmdCheaterCheater() {}
--- End code ---
- Cheater cheater pumpkin eater...
--- Code: --- virtual void serverCmdRainPlanes() {}
--- End code ---
- What, does it rain stuntplanes?
--- Code: --- virtual void serverCmdrainguns() {}
--- End code ---
- 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?
Headcrab Zombie:
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.
mp7964:
Ah.
jes00:
--- Quote from: mp7964 on September 05, 2011, 10:38:16 PM ---
--- Code: --- virtual void serverCmdtogadmin() {}
--- End code ---
This might be a command in Ibans CityRPG
--- Code: --- virtual void serverCmdCheaterCheater() {}
--- End code ---
This is a command in Ibans CityRPG
--- Code: --- virtual void serverCmdRainPlanes() {}
--- End code ---
This is a command in Ibans CityRPG
--- Code: --- virtual void serverCmdrainguns() {}
--- End code ---
This is a command in Ibans CityRPG
--- End quote ---
Headcrab Zombie:
--- Quote from: jes00 on September 06, 2011, 08:29:27 AM ---
--- End quote ---
No, all of these commands are defined on a clean install of Blockland.