How to Add Admins on a CS 1.6 Server (users.ini)
Add admins on your CS 1.6 server with AMX Mod X: by SteamID, name and password or IP. Every access flag explained, with ready-made admin levels.
Series · part 3 of 5Your first CS 1.6 server
In this guide 15 sections
- 1Quick steps
- 2What you need
- 3Where admins are stored
- 4How an admin line works
- 5Add an admin by SteamID (recommended)
- 6Add an admin by name and password
- 7Add an admin by IP
- 8SteamID and password together
- 9Ready-made admin levels
- 10Add an admin from the console
- 11Check that it works
- 12Remove an admin
- 13Troubleshooting
- 14FAQ
- 15Next steps
On a CS 1.6 server, admins are set up by AMX Mod X in one file: users.ini. Every admin is one line: who they are (SteamID, name or IP), a password, the rights they get (letters a to v) and how the server checks them. This guide shows each way to add an admin, what every letter means, and ready-made lines for owner, admin, moderator and VIP.
Quick steps#
- Open
cstrike/addons/amxmodx/configs/users.ini. - Add a line at the end:
"STEAM_0:1:12345678" "" "abcdefghijklmnopqrstuv" "ce". - Save the file.
- Type
amx_reloadadminsin the server console, or change the map. - Reconnect and type
amxmodmenuin your console to check.
The full instructions for each step are below.
What you need#
- A CS 1.6 server with AMX Mod X installed and running (
amxx pluginsin the console shows a list) - Access to the server files (FTP, SSH or a host panel)
- The SteamID of the player you're adding, or a name and password
No AMX Mod X yet? Install it first:
How to install AMX Mod X on a ReHLDS serverInstall Metamod-r and AMX Mod X 1.10 on a CS 1.6 ReHLDS server, make yourself admin and add your first plugin, on Windows or Linux.Read the guideWhere admins are stored#
cstrike/addons/amxmodx/configs/users.iniLines that start with ; are comments and are ignored. The file already has one active line:
"loopback" "" "abcdefghijklmnopqrstuv" "de"Leave it there. It makes you admin when you host a game from your own client (a listen server), and it does nothing on a dedicated server.
How an admin line works#
Every line has four parts, each in double quotes, separated by spaces:
"who" "password" "access flags" "account flags"| Part | Example | What it is |
|---|---|---|
| Who | STEAM_0:1:12345678 | A SteamID, a player name or an IP address |
| Password | "" | Empty, or the password the player must send |
| Access flags | abcdefghijklmnopqrstuv | What the admin may do (table below) |
| Account flags | ce | How the server recognises the admin (table below) |
Access flags: what an admin can do#
| Flag | Right |
|---|---|
a | Immunity: can't be kicked, banned, slayed or slapped by other admins |
b | Reserved slot: can join when the server is full (if reservation is on) |
c | amx_kick: kick players |
d | amx_ban, amx_unban: ban and unban, including permanent bans |
e | amx_slay, amx_slap: slay and slap players |
f | amx_map: change the map |
g | amx_cvar: change server settings (not every cvar) |
h | amx_cfg: run config files; also amx_reloadadmins |
i | amx_chat and other admin chat commands |
j | amx_vote and other vote commands |
k | Change sv_password (lock the server) |
l | amx_rcon: full remote control of the server |
m–t | Custom levels A–H, used by extra plugins (VIP plugins often use t) |
u | Admin menu access (amxmodmenu) |
v | Temporary bans only; can only unban the bans they made on the current map |
z | Not an admin. Never put it in an admin's flags |
l gives amx_rcon, which can run any server command. With it, an admin can change the RCON password, remove other admins or shut the server down. Keep it for the owner.
Account flags: how the admin is recognised#
| Flag | Meaning |
|---|---|
c | The "who" part is a SteamID |
d | The "who" part is an IP address |
| (neither) | The "who" part is a player name |
e | Don't check a password. The SteamID, IP or name is enough |
a | Kick the player if the password is wrong |
b | Clan tag: the name only has to contain the text (for example [XC]) |
k | The name is case sensitive |
So ce means "this is a SteamID, no password", and a alone means "this is a name, check the password and kick if it's wrong".
Add an admin by SteamID (recommended)#
A SteamID belongs to one Steam account, can't be changed by the player, and needs no password. It is the safest way for Steam players.
1Find the SteamID
The player can type
SteamID FinderEvery SteamID format from a profile link.Openstatusin the console while on your server. Their line shows a SteamID likeSTEAM_0:1:12345678. You can also get it from their Steam profile link:2Add the line
At the end of
users.ini:users.iniini; Owner "STEAM_0:1:12345678" "" "abcdefghijklmnopqrstuv" "ce"Put a comment line with the person's name above each admin. In a few months you'll be glad you did.
3Reload the admins
Type in the server console (or with
rcon):bashamx_reloadadminsA map change also reloads the file.
CS 1.6 always writes SteamIDs as STEAM_0:…. Some tools show the same account as STEAM_1:…. Use STEAM_0 and keep the rest exactly the same.
Add an admin by name and password#
Use this when the player has no fixed SteamID, for example with some non-Steam clients (their SteamID shows as STEAM_ID_LAN, VALVE_ID_LAN or STEAM_ID_PENDING).
1Add the line on the server
users.iniini; Moderator who plays without Steam "Andrei" "s3cret-pass" "bcdefiju" "a"The name must match the player's in-game name exactly. Flag
akicks anyone who uses this name with the wrong password, so nobody can just copy the name.2Set the password on the player's PC
The player opens
cstrike/autoexec.cfgin their game folder (they create it if it doesn't exist) and adds:cstrike/autoexec.cfgcfgsetinfo "_pw" "s3cret-pass"They can also type the same line in the console before connecting. The password is sent to the server when they join.
3Reload the admins
Type
amx_reloadadminsin the server console, then the player reconnects.
_pw is the default name of the field that carries the password, and every server and cheat knows it. Change it in cstrike/addons/amxmodx/configs/amxx.cfg to something only your admins know:
amx_password_field "_xcpw"Then admins use setinfo "_xcpw" "their-password". The name must start with _.
Clan tag admins#
With account flag b, the "who" part only has to appear somewhere in the name. This line makes every player whose name contains [XC] an admin, as long as they send the right password:
"[XC]" "clan-password" "bcdefiju" "ab"Add an admin by IP#
Only use this for an IP that never changes (a home with a fixed IP, a LAN). Most home connections get a new IP from time to time, and then the admin is gone, or worse, someone else gets the old IP.
"192.168.1.50" "" "abcdefghijklmnopqrstuv" "de"SteamID and password together#
The safest combination: the SteamID and a password must match. If someone fakes the SteamID (possible with some non-Steam clients), they still don't get in.
"STEAM_0:1:12345678" "s3cret-pass" "abcdefghijklmnopqrstuv" "ca"c = it's a SteamID, a = check the password and kick if it's wrong. The player sets the password with setinfo as shown above.
Ready-made admin levels#
Copy the line you need and change the SteamID:
; Owner: every right
"STEAM_0:1:11111111" "" "abcdefghijklmnopqrstuv" "ce"
; Admin: everything except rcon and the server password
"STEAM_0:1:22222222" "" "abcdefghijmnopqrstu" "ce"
; Moderator: kick, slay/slap, map, chat, votes, menu, temporary bans
"STEAM_0:1:33333333" "" "bcefijuv" "ce"
; VIP: reserved slot + custom level for VIP plugins
"STEAM_0:1:44444444" "" "bt" "ce"| Level | Flags | Can do |
|---|---|---|
| Owner | abcdefghijklmnopqrstuv | Everything |
| Admin | abcdefghijmnopqrstu | Kick, ban, slay, maps, cvars, configs, chat, votes, menu, custom levels, immunity |
| Moderator | bcefijuv | Kick, slay/slap, maps, chat, votes, menu, temporary bans |
| VIP | bt | Reserved slot and VIP plugin features |
Which flag does my VIP plugin use?
It depends on the plugin. Most VIP plugins check one custom flag (t is common, some use m or o). The flag is written in the plugin's description or at the top of its .sma file, usually as ADMIN_LEVEL_H (that is t). Check before you give it out.
Add an admin from the console#
If you're already in the game with l (rcon) rights, you don't have to edit the file. amx_addadmin writes the line to users.ini for you:
amx_addadmin "STEAM_0:1:12345678" "bcdefiju"You can also give the name of a player who's on the server, plus a password:
amx_addadmin "Andrei" "bcdefiju" "s3cret-pass" "name"The full form is amx_addadmin <player|auth> <access flags> [password] [authtype]. Run amx_reloadadmins afterwards to be sure the new line is loaded.
Check that it works#
Reconnect to the server and type in your console (open it with ~):
amxmodmenuThe admin menu opens. To see which rights you got, type:
amx_whoIt lists every player on the server with their access flags.
Remove an admin#
Delete the line from users.ini, or put ; in front of it to switch it off for now. Then type amx_reloadadmins.
; "STEAM_0:1:33333333" "" "bcefijuv" "ce"Troubleshooting#
"You have no access to that command"#
Your line wasn't matched. Check, in this order:
- The SteamID is exactly the one
statusshows (STEAM_0, both numbers). - The line has four parts, each in double quotes.
- The account flags fit the "who" part:
cfor SteamID,dfor IP, none for a name. - You ran
amx_reloadadminsor changed the map after saving.
The admin works, then disappears#
The player has a dynamic IP (IP admins), changed their name (name admins), or the server's SteamIdHashSalt in reunion.cfg changed (non-Steam players). Use a SteamID line, or SteamID with a password.
The player gets kicked with "invalid password"#
The password in users.ini and the one in their setinfo don't match, or they use a different field name than amx_password_field. Both are case sensitive.
Nobody is admin, even the owner#
Look in cstrike/addons/amxmodx/configs/plugins.ini. If admin_sql.amxx is on instead of admin.amxx, admins come from a MySQL database and users.ini is ignored. Also check that amx_mode in amxx.cfg is 1 (with 0, nobody gets admin rights).
The SteamID shows as STEAM_ID_LAN or VALVE_ID_LAN#
The player uses a non-Steam client and the server can't give them a real SteamID. Use a name and password line for them, or install Reunion on the server so non-Steam players get a stable SteamID.
FAQ#
What flags does a full admin need?#
abcdefghijklmnopqrstuv with account flags ce for a SteamID. That's every right; z must never be in it.
Do I have to restart the server after adding an admin?#
No. amx_reloadadmins in the server console reloads users.ini right away. A map change does the same.
Can I give admin by IP?#
Yes, with account flags de. It's only safe for an IP that never changes, so SteamID is better.
How do I make admin for a whole clan?#
Use the clan tag with account flag b and a password: "[TAG]" "password" "bcdefiju" "ab". Every member with the tag in their name and the right password gets those rights.
Next steps#
Your admins are set. Now:
- Find admin, VIP and moderation plugins in the plugin library
- Put your server on XCSTRIKE so players can find it:
