This is my Zandronum admin mod.
==Demonstration video==
WATCH IN 720p ATLEAST
The [video] tag is deprecated, please use the [media] tag
==Features==
You can make your friends admins without giving them RCON! (herp

I'm cool "Rcon quit")
You can limit what commands they can use with admin_no<Command> EG: admin_noBan disables the ability to ban!
Currently supported features:
Kicking,
Force Spectating,
Banning,
Map Changes,
MapChange style Map changes,
God,
Fly.
People with ACS knowlege can easily add more, it just takes a few steps!
Spoiler: How To Add your own command (Open)
In our examle, we're going to add the ability to execute your own script!
First, you need to set up some #Defines
Code: Select all
#define SCR_MYSCRIPT 607
#define CMD_MYSCRIPT 9
#define MENU_MYSCRIPT 15
SCR_MYSCRIPT is the number of your script
CMD_MYSCRIPT is the menu command number
and MENU_MYSCRIPT is the menu number
Now, edit the #define MENU_AOOPTIONS and add one to it!
Then add your option in the strOptions arrays with the text you want to display and menu number.
Now, you're going to scroll down to SCR_MAIN, in the While (true) loop, put this after any of the other menu commands:
Code: Select all
else if (menu == MENU_MYSCRIPT)
{
FUNC_CMD(CMD_MYSCRIPT, 0, 0, 0, 0, playerNumber());
break; //Exits the menu.
}
Now, you scroll down to the FUNC_CMD function, and add your MYSCRIPT case!
Code: Select all
case CMD_MYSCRIPT:
ACS_Execute(SCR_MYSCRIPT, 0, 0, 0, 0);
Then, the menu will activate your script in whatever mod you have!
You can look at the other menu functions for more complicated examples involving scrolling menus, getting a list of players, etc.
I'm up for suggestions regarding default commands that come with the admin menu!
==Download==
The mod works 100% right now, but I want the password input to be a bit easier. (right now you have to do "set admin_validator <paswordnumber>" in console on the client) And make map-picking not restricted to map01-map32.
ZandroAdminB1.zip
Mirror
==HUGE DISCLAIMER==
YOU CANNOT USE THIS AS A SPECTATOR (YET) AND OPENING THE MENU MORE THAN ONCE AT A TIME IS YOUR OWN GODDAMN FAULT, I'M NOT RESPONSIBLE IF YOU BAN YOURSELF