Admin management
These commands are used for managing your server administrators. With SAPP admins, you can allow your server administrators to use certain commands based on a tiered system of levels, and higher level admins can use more commands. In SAPP, there are two flavors of admins: CD-key based admins as well as admins based on profile name and password.
The use of these commands is completely optional if you want to exclusively use the vanilla rcon-password system without setting up any SAPP admins on your server. SAPP enables brute force protection to rcon, and temporarily sets the level of the player to 4 upon success.
Note: Admins are not kicked by afk_kick and ping_kick.
Note 2: Commands are accessible via console, chat text (place \ [or whatever you set with cmdstart command] before each command), and from the init.txt files.
CD-Key based Admin Management
These admins are automatically authenticated upon joining the server based on CD-key hash and, optionally, their IP. If your admin shares CD keys, then using an IP is recommended
Command | Effect | Level |
---|---|---|
adminadd <player expr> <level> [allowed IP ranges…] |
Add a CD-Key based admin. You can also provide any number of IP ranges which uses CIDR addressing. If you want to allow admins to use this command, you will need to configure the adminadd_samelevel command. |
0 |
adminlevel <index> <level> | Set a new level for a CD-Key based admin. | 0 |
admindel <index> |
Remove a CD-Key based admin. If you want to allow admins to use this command, you will need to configure the adminadel_samelevel command. |
0 |
admins | Display a list of CD-Key based admins. | 4 |
Name and Password based Admin Management
These admins must use the login command to be authenticated and must have the correct profile name and provide the correct password. This system can be more secure than automatically authenticating the user, especially if a user uses the same PC as someone else.
Note that if someone steals your name, while they may not be able to log into your admin account, you will not be able to log into your own admin account. If you want protection against this, you will want a backup method of logging in. Alternatively, you can create a script that kicks users with certain names who have not logged in after a period of time.
Name-based admins can also use remote console if it’s enabled on the server.
Command | Effect | Level |
---|---|---|
admin_add <player expr> <password> <level> | Add a name and password based admin. | 4 |
admin_add_manually <name> <password> <level> | Add a name and password based admin that is not present on the server. | 4 |
admin_change_pw <index> <password> | Change a name and password based admin’s password. | 4 |
admin_change_level <index> <level> | Change a name and password based admin’s level. | 4 |
admin_del <index> | Delete a name and password based admin. | 4 |
admin_list | List name and password based admins. | 4 |
change_password <old password> <new password> | Change the password of the currently logged in name and password based admin. | 0 |
login <password> | Log into a name and password based admin account. This command’s level and name cannot be modified with setcmd. | -1 |
Command levels
Each admin level can use the commands of the lower admin levels.
You can change the name and the level of each command with the setcmd command!
Examples: setcmd k kick will change 'k' command to 'kick', setcmd k 3 will change 'k' command to level 3
Commands by level | |
Level -1 (player) Commands: | |
info, stats, sv_stats, whatsnext, about, login, lead | |
Level 0 Commands: | |
v, afk, kdr, uptime, cpu, files, change_password | |
Level 1 Commands: | |
afks, skips, aimbot_scores | |
Level 2 Commands: | |
pl, k, textban, textbans, textunban, mute, mutes, unmute, say, tell, st, balance_teams | |
Level 3 Commands: | |
b, bans, ub, ip, ipban, ipbans, ipunban, d, inf, password, map, maplist | |
Level 4 Commands: | |
Naughty Commands: s, kill, kills, assists, deaths, god, ungod, lag, unlag, camo, boost, loc add, loc del, loc list, loc listall, t, m, tp, hp, sh, ammo, battery, mag, nades, vexit, venter, wdel, wadd, spawn, despawn, olist, random_bonus, etc :D | |
Admin Management v1: adminadd, admin_change_level, admindel, admins | |
Admin Management v2: admin add, admin add_manually, admin change_pw, admin change_level, admin del, admin list | |
Event system, makros: event *, eventdel, events, cmd add, cmd del, cmd list, wait, w8 | |
Map Voting: mapvotes, mapvote_add, mapvote_del, max_votes | |
Server Management: rcon_password, timeout, afk_kick, ping_kick, map_skip, spawn_protection, anticamp, aimbot_ban, map_skip, antispam, anticaps, antihalofp, adminban, coldsnap_ag, save_scores, block_tc, unlock_console_log, sapp_console, full_ipban, v1, v2, cmdstart, cmdstart1, say_prefix, msg_prefix, text, log, log_note, log_rotation, max_idle, setcmd, set_ccolor, list, beep, etc... | |
+ All Basic and Devmode Commands |