Trying to figure out the best way to handle the admin system, what flag should do what and so on. I came up with a small program attached that shows what admin flag as what current value. Whos current output is this:
If you can think of any other commands that should be able to be accessed take a look at the commands.txt file and add where appropriate. (By the way, I picked chat for T because that's the default bind to talk in game.)
Configuring AMX Mod X, Commands (AMX Mod X), Adding Admins (AMX Mod X) & Admin Commands (SourceMod). To get an idea of their intended roles.
0 = 0 (0 << 0) ;
1 = 1 (1 << 0) [a];
2 = 10 (1 << 1) [b];
4 = 100 (1 << 2) [c];
8 = 1000 (1 << 3) [d];
16 = 10000 (1 << 4) [e];
32 = 100000 (1 << 5) [f];
64 = 1000000 (1 << 6) [g];
128 = 10000000 (1 << 7) [h];
256 = 100000000 (1 << 8) [i];
512 = 1000000000 (1 << 9) [j];
1024 = 10000000000 (1 << 10) [k];
2048 = 100000000000 (1 << 11) [l];
4096 = 1000000000000 (1 << 12) [m];
8192 = 10000000000000 (1 << 13) [n];
16384 = 100000000000000 (1 << 14) [o];
32768 = 1000000000000000 (1 << 15) [p];
65536 = 10000000000000000 (1 << 16) [q];
131072 = 100000000000000000 (1 << 17) [r];
262144 = 1000000000000000000 (1 << 18) [s];
524288 = 10000000000000000000 (1 << 19) [t];
1048576 = 100000000000000000000 (1 << 20) [u];
2097152 = 1000000000000000000000 (1 << 21) [v];
4194304 = 10000000000000000000000 (1 << 22) [w];
8388608 = 100000000000000000000000 (1 << 23) [x];
16777216 = 1000000000000000000000000 (1 << 24) [y];
33554432 = 10000000000000000000000000 (1 << 25) [z];
; Users configuration file
; File location: ./PHPInSimMod/configs/users.ini
; Line starting with ; is a comment
; Access flags:
; a - access to remote console (RCON) and rcon password cvar (by `!prism cvar` command)
; b - /ban and /unban commands (`prism ban` and `prism unban` commands)
; c - access to `prism cvar` command (not all cvars will be available)
; d - access to `prism cfg` command (allows you to change lfs configuration settings)
; e -
; f -
; g -
; h -
; i - immunity (can't be kicked/baned/speced/pited and affected by other commmands)
; j -
; k - /kick command (`prism kick` command)
; l -
; m - access to /track `prism track` & `prism map` command
; n - /track command
; o -
; p - access to /pass cvar (by `!prism cvar` command)
; q -
; r - reservation (can join on reserved slots)
; s - /spec and /pit commands
; t - chat commands (`prism chat` and other chat commands)
; u - Unimmunized, given the ability to run commands on immunized admins.
; v - vote commands
; w - access to /wind cfg & `prism wind` command.
; x - custom level X (for additional plugins)
; y - custom level Y (for additional plugins)
; z - custom level Z (for additional plugins)
; Format of admin account:
; <LFS Username> <Password> <Access flags>
; Examples of admin accounts:
; "Victor" "password" "abcdefghijklmnopqrstuvwxyz"; Root access, can do anything.
; "Dygear" "love" "abcdikmprstvw"; Admin access, same access as if you had given him the lfs admin password.
; "GeForz" "god" "bks"; Mod access, can only kick, ban, spec & pit not immune from other admins commands.
; Admins not in a section are global admins, admins for all servers that PRISM connects too.
[localhost]
; Admin difitions below will only work on connections that share the section's name.
; "Scawen" "anMD5hash" "abcdefghijklmnopqrstuvwxyz"
; "Eric" "1m0d31" "abcdikmprstvw"
If you can think of any other commands that should be able to be accessed take a look at the commands.txt file and add where appropriate. (By the way, I picked chat for T because that's the default bind to talk in game.)
Configuring AMX Mod X, Commands (AMX Mod X), Adding Admins (AMX Mod X) & Admin Commands (SourceMod). To get an idea of their intended roles.