How to Add Admins on a CS:GO Server (SourceMod)
Add admins on your CS:GO server with SourceMod: admins_simple.ini by SteamID, IP or name, every flag explained, immunity, groups and admin commands.
Series · part 3 of 3Your first CS:GO server
In this guide 10 sections
On a CS:GO server, admins come from SourceMod. The simplest way is one line per admin in admins_simple.ini: who they are (SteamID, IP or name), their immunity and flags (letters a to t, or z for everything), and an optional password. This guide shows each way, what every flag does, groups, and the commands admins use.
Quick steps#
- Open
csgo/addons/sourcemod/configs/admins_simple.ini. - Add a line at the end:
"STEAM_1:1:12345678" "99:z". - Save, then type
sm_reloadadminsin the server console. - Reconnect and type
!adminin chat (orsm_adminin the console) to open the admin menu.
The full instructions for each step are below.
What you need#
A CS:GO server with SourceMod running (sm version answers in the console):
Find your SteamID#
In the game, while on your server, open the console and type status. Your line shows your SteamID, like STEAM_1:1:12345678. You can also get it from your Steam profile link:
CS:GO shows SteamIDs as STEAM_1:…; some tools show the same account as STEAM_0:…. SourceMod accepts either: only the numbers after the first colon matter.
Add an admin#
Open this file:
csgo/addons/sourcemod/configs/admins_simple.iniEach admin is one line:
"who" "immunity:flags" "password"The password is optional. Lines starting with // are comments.
By SteamID (recommended)#
// Owner
"STEAM_1:1:12345678" "99:z"99 is the immunity and z gives every permission. A SteamID can't be faked, and no password is needed.
By IP#
Put ! before the IP:
"!192.168.1.50" "50:bcdefgjk"Only use it for an IP that never changes.
By name and password#
"Andrei" "50:bcdefgjk" "s3cret-pass"The player sets the password in their console before joining:
setinfo "_password" "s3cret-pass"The key name (_password here) is set by PassInfoVar in addons/sourcemod/configs/core.cfg. Change it to something only your admins know, for example _xcpw, and tell them to use that name in setinfo.
Reload the admins#
After saving, type in the server console:
sm_reloadadminsA map change also reloads them.
The flags#
| Flag | Name | What it allows |
|---|---|---|
a | reservation | Reserved slot |
b | generic | Basic admin. Every admin needs it |
c | kick | Kick players |
d | ban | Ban players |
e | unban | Remove bans |
f | slay | Slay and slap players |
g | changemap | Change the map and major game settings |
h | cvar | Change most server settings |
i | config | Run config files |
j | chat | Admin chat commands |
k | vote | Start votes |
l | password | Set the server password |
m | rcon | Use RCON commands |
n | cheats | Change sv_cheats and use cheat commands |
o–t | custom1–6 | Used by other plugins (VIP plugins often use o) |
z | root | Everything, and ignores immunity |
Ready-made levels#
// Owner: everything
"STEAM_1:1:11111111" "99:z"
// Admin: kick, ban, unban, slay, maps, cvars, configs, chat, votes
"STEAM_1:1:22222222" "70:bcdefghijk"
// Moderator: kick, slay, chat, votes
"STEAM_1:1:33333333" "50:bcfjk"
// VIP: reserved slot + custom flag for VIP plugins
"STEAM_1:1:44444444" "ao"z is every permission. m lets an admin run any server command through RCON, including changing passwords or removing other admins.
Immunity#
The number before the colon is the immunity. An admin can't kick, ban or slay an admin with higher immunity. 0 means none, and z ignores immunity. Give owners and head admins higher numbers than moderators.
Use groups#
With many admins, define groups once and give admins a group. Groups go in:
csgo/addons/sourcemod/configs/admin_groups.cfgGroups
{
"Moderator"
{
"flags" "bcfjk"
"immunity" "50"
}
"Admin"
{
"flags" "bcdefghijk"
"immunity" "70"
}
}Then in admins_simple.ini, give the group with @ instead of flags:
"STEAM_1:1:33333333" "@Moderator"
"STEAM_1:1:22222222" "@Admin"Run sm_reloadadmins after any change.
Admin commands#
Type them in chat with ! (for example !kick) or in the console with sm_. !admin opens a menu with most of them.
| Command | What it does | Flag |
|---|---|---|
sm_admin | Opens the admin menu | b |
sm_who | Shows players and their admin access | b |
sm_kick <player> [reason] | Kicks a player | c |
sm_ban <player> <minutes> [reason] | Bans; 0 minutes is permanent | d |
sm_addban <minutes> <steamid> [reason] | Bans a player who isn't on the server | m |
sm_unban <steamid or ip> | Removes a ban | e |
sm_slay <player> | Kills a player | f |
sm_slap <player> [damage] | Slaps a player | f |
sm_map <map> | Changes the map | g |
sm_mute / sm_gag / sm_silence | Blocks voice, chat, or both | j |
sm_vote <question> [answers] | Starts a vote | k |
sm_rcon <command> | Runs a server command | m |
<player> can be part of a name, #userid (from status), or a target like @all, @t, @ct.
!kick shows the command in chat for everyone; /kick does the same thing silently.
Troubleshooting#
"You do not have access to this command"#
- The SteamID in the file doesn't match: compare it with
status. - The admin doesn't have
b, which almost every admin command needs. - You didn't reload: run
sm_reloadadminsor change the map.
Nobody is admin#
Check that the file is admins_simple.ini in addons/sourcemod/configs/, and that every line has its quotes. A missing quote breaks the lines after it. Errors are in addons/sourcemod/logs/.
The name and password admin doesn't work#
The name must match exactly, and the setinfo key must be the one in PassInfoVar (core.cfg). Set the password before connecting, then reconnect.
A group doesn't work#
The group name in admins_simple.ini must start with @ and match the name in admin_groups.cfg exactly.
FAQ#
How do I make myself admin on a CS:GO server?#
Add "YOUR_STEAMID" "99:z" to addons/sourcemod/configs/admins_simple.ini and type sm_reloadadmins in the server console.
What does the "z" flag do?#
It's root: every permission, and it ignores immunity. Keep it for the owner.
Do I have to restart the server after adding an admin?#
No. sm_reloadadmins loads the file right away.
Can I use the same admin file on CS:S?#
Yes. SourceMod admins work the same on CS:S and CS:GO.
Next steps#
- Find CS:GO plugins in the plugin library
- Put your server on XCSTRIKE so players can find it:
