As an admin, you control your CS:GO server directly in the game. For example, you can kick or ban players, change the map, or start votes. To do this, you use SourceMod. This guide explains how to add yourself and other players as admins, create groups, and grant immunity.
Metamod:Source and SourceMod are already preinstalled on your CS:GO server in ZapX. You don't need to install anything yourself. Learn more in our guide Installing plugins.
All admin files are in the csgo/addons/sourcemod/configs folder. You can edit them in the Files tab or via SFTP. For instructions on setting up SFTP access, see our guide Access via SFTP. ZapX creates the addons folder only the first time the server starts and won't overwrite your changes afterward.
Add admins to these files in SourceMod. Then apply your changes by restarting the server or, without restarting, through your server's Console in ZapX (see Applying changes).
SourceMod usually identifies admins by their Steam ID. Connect to your server, open the developer console, and enter this command:
status
Your Steam ID appears in the player list, for example STEAM_1:1:12345678. Add this ID to the files. It doesn't matter to SourceMod whether it starts with STEAM_0 or STEAM_1. SourceMod also recognizes the format [U:1:24691357].
For most servers, the admins_simple.ini file is sufficient. Each line contains one admin and their permissions.
- Open your server in ZapX and go to the Files tab.
- Open the
csgo/addons/sourcemod/configsfolder, then open theadmins_simple.inifile. - Add a line at the end of the file for each admin:
"STEAM_1:1:12345678" "z"
"STEAM_1:0:87654321" "bcdefgk"
- Save the file and restart your server using Restart.
In this example, the first admin gets all permissions with z. The second admin can only perform selected actions, such as kicking and banning players.
To also grant an admin immunity, add the value followed by a colon before the permissions. To assign a group from the admin_groups.cfg file, use @:
"STEAM_1:1:12345678" "99:z"
"STEAM_1:0:87654321" "@Moderator"
Each permission is represented by a letter. You can write multiple letters in a row, for example bcdefgk.
| Flag | Permission |
|---|---|
a | Reserved slot, even when the server is full |
b | General admin; required for all admins |
c | Kick players |
d | Ban players |
e | Lift bans |
f | Kill or hurt players (slay) |
g | Change the map or important game settings |
h | Change most server variables (cvars) |
i | Execute configuration files |
j | Special chat permissions |
k | Start votes |
l | Set a password on the server |
m | Use RCON commands |
n | Change sv_cheats and use cheat commands |
o to t | Custom permissions for plugins (custom1 to custom6) |
z | All permissions; ignores other admins' immunity |
Instead of admins_simple.ini, you can use the admins.cfg file in the same folder. This file is easier to manage if you have many admins with groups, immunity, or passwords. The file already contains an empty Admins { } section. Add a separate block for each admin inside it:
Admins
{
"Max"
{
"auth" "steam"
"identity" "STEAM_1:1:12345678"
"flags" "z"
"immunity" "99"
}
"Lena"
{
"auth" "steam"
"identity" "STEAM_1:0:87654321"
"group" "Moderator"
}
}
authandidentityare required. With"auth" "steam", SourceMod identifies the admin by the Steam ID inidentity.flagssets the permissions, andimmunitysets the immunity value.groupassigns a group. Enter the group name here without@.
Add each admin to only one of the two files. Save the file and restart your server afterward.
Groups let you avoid setting permissions individually for each admin. Groups are defined in the admin_groups.cfg file in the csgo/addons/sourcemod/configs folder. SourceMod already includes the Full Admins group, which has all permissions (flag z) and an immunity value of 99.
Add your own groups inside the Groups { } section. For example, here's a group for moderators:
"Moderator"
{
"flags" "bcdefgk"
"immunity" "10"
}
You can then assign the group to an admin in admins_simple.ini using "@Moderator" or in admins.cfg using "group" "Moderator". For the included group, use "@Full Admins" or "group" "Full Admins", respectively. Groups can't inherit from each other, so you need to assign permissions to each group individually.
Immunity protects admins from one another. Whether an admin can kick or ban another admin depends on which one has the higher immunity value.
- A value of
0means no immunity. - If two admins have the same value, they can target each other. You can change this with the
sm_immunity_modesetting in thecsgo/cfg/sourcemod/sourcemod.cfgfile. A value of2also protects admins from others with the same value. - Admins with the
zpermission aren't checked for immunity, so they can target any player. - If an admin has an immunity value, but their group has a higher one, the admin gets the group's higher value.
After every change to the admin files, restart your server using Restart. Your new permissions will then take effect.
You can also apply the changes without restarting by using your server's Console in ZapX. While the server is running, open the Console tab and enter this command:
sm_reloadadmins
SourceMod will then reload all admins and groups.
Command input is new for CS:GO. If your server was created before this feature was available, it needs a one-time update. If the console says “Your server isn't accepting commands yet,” apply the offered update: when you open your server, the Update available window appears. Click Apply update there. The server will be briefly re-created, but your game data will remain intact. A regular restart isn't enough. If you don't see an update, contact support.
Alternatively, you can use RCON. You can find your RCON password in the Configuration tab under Startup parameters, in the RCON password field. Connect to your server, open the developer console, and enter these commands:
rcon_password [your RCON password]
rcon sm_reloadadmins
Only share your RCON password with people you trust. RCON gives full control over your server.
Connect to your server. To open the admin menu, enter sm_admin in the developer console. You can also enter all admin commands in chat. To do this, use ! instead of sm_ before the command, for example !admin or !kick. Use / instead of ! to keep your command from appearing in chat to other players.
If the menu doesn't open, check your Steam ID and make sure you've applied your changes.
Add admins to csgo/addons/sourcemod/configs/admins_simple.ini or admins.cfg, and groups to admin_groups.cfg. After a restart or running sm_reloadadmins in the Console, you'll have your admin permissions in the game. For an overview of all the sections of your server, see our guide Dashboard overview.
If you have questions or need help, our support team is here for you every day! 🙂
