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.

8 min read Last checked 1h ago 3 views
Series · part 3 of 5Your first CS 1.6 server
  1. 1How to Make a CS 1.6 Server (SteamCMD + ReHLDS)
  2. 2How to install AMX Mod X on a ReHLDS server
  3. 3How to Add Admins on a CS 1.6 Server (users.ini)
  4. 4How to Install ReGameDLL and ReAPI on a CS 1.6 Server
  5. 5How to Add Maps to a CS 1.6 Server (+ FastDL)
In this guide 15 sections
  1. 1Quick steps
  2. 2What you need
  3. 3Where admins are stored
  4. 4How an admin line works
  5. 5Add an admin by SteamID (recommended)
  6. 6Add an admin by name and password
  7. 7Add an admin by IP
  8. 8SteamID and password together
  9. 9Ready-made admin levels
  10. 10Add an admin from the console
  11. 11Check that it works
  12. 12Remove an admin
  13. 13Troubleshooting
  14. 14FAQ
  15. 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#

  1. Open cstrike/addons/amxmodx/configs/users.ini.
  2. Add a line at the end: "STEAM_0:1:12345678" "" "abcdefghijklmnopqrstuv" "ce".
  3. Save the file.
  4. Type amx_reloadadmins in the server console, or change the map.
  5. Reconnect and type amxmodmenu in 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 plugins in 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 guide

Where admins are stored#

cstrike/addons/amxmodx/configs/users.ini

Lines that start with ; are comments and are ignored. The file already has one active line:

users.iniini
"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:

users.iniini
"who" "password" "access flags" "account flags"
PartExampleWhat it is
WhoSTEAM_0:1:12345678A SteamID, a player name or an IP address
Password""Empty, or the password the player must send
Access flagsabcdefghijklmnopqrstuvWhat the admin may do (table below)
Account flagsceHow the server recognises the admin (table below)

Access flags: what an admin can do#

FlagRight
aImmunity: can't be kicked, banned, slayed or slapped by other admins
bReserved slot: can join when the server is full (if reservation is on)
camx_kick: kick players
damx_ban, amx_unban: ban and unban, including permanent bans
eamx_slay, amx_slap: slay and slap players
famx_map: change the map
gamx_cvar: change server settings (not every cvar)
hamx_cfg: run config files; also amx_reloadadmins
iamx_chat and other admin chat commands
jamx_vote and other vote commands
kChange sv_password (lock the server)
lamx_rcon: full remote control of the server
m–tCustom levels A–H, used by extra plugins (VIP plugins often use t)
uAdmin menu access (amxmodmenu)
vTemporary bans only; can only unban the bans they made on the current map
zNot an admin. Never put it in an admin's flags
Give "l" only to people you trust completely

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#

FlagMeaning
cThe "who" part is a SteamID
dThe "who" part is an IP address
(neither)The "who" part is a player name
eDon't check a password. The SteamID, IP or name is enough
aKick the player if the password is wrong
bClan tag: the name only has to contain the text (for example [XC])
kThe 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".

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.

  1. 1Find the SteamID

    The player can type status in the console while on your server. Their line shows a SteamID like STEAM_0:1:12345678. You can also get it from their Steam profile link:

    SteamID FinderEvery SteamID format from a profile link.Open
  2. 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.

  3. 3Reload the admins

    Type in the server console (or with rcon):

    bash
    amx_reloadadmins

    A map change also reloads the file.

STEAM_0 or STEAM_1?

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).

  1. 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 a kicks anyone who uses this name with the wrong password, so nobody can just copy the name.

  2. 2Set the password on the player's PC

    The player opens cstrike/autoexec.cfg in their game folder (they create it if it doesn't exist) and adds:

    cstrike/autoexec.cfgcfg
    setinfo "_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.

  3. 3Reload the admins

    Type amx_reloadadmins in the server console, then the player reconnects.

Change the password field name

_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:

addons/amxmodx/configs/amxx.cfgcfg
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:

users.iniini
"[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.

users.iniini
"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.

users.iniini
"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:

users.iniini
; 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"
LevelFlagsCan do
OwnerabcdefghijklmnopqrstuvEverything
AdminabcdefghijmnopqrstuKick, ban, slay, maps, cvars, configs, chat, votes, menu, custom levels, immunity
ModeratorbcefijuvKick, slay/slap, maps, chat, votes, menu, temporary bans
VIPbtReserved 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:

bash
amx_addadmin "STEAM_0:1:12345678" "bcdefiju"

You can also give the name of a player who's on the server, plus a password:

bash
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 ~):

bash
amxmodmenu

The admin menu opens. To see which rights you got, type:

bash
amx_who

It 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.

users.iniini
; "STEAM_0:1:33333333" "" "bcefijuv" "ce"

Troubleshooting#

"You have no access to that command"#

Your line wasn't matched. Check, in this order:

  1. The SteamID is exactly the one status shows (STEAM_0, both numbers).
  2. The line has four parts, each in double quotes.
  3. The account flags fit the "who" part: c for SteamID, d for IP, none for a name.
  4. You ran amx_reloadadmins or 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:
Add your serverList your server on XCSTRIKE and get players.Open
Was this guide helpful?
Thanks for the feedback!
Stuck on a step?Ask other server admins on the forum. Say which guide and which step.
Ask on the forum