Granting administrator rights allows you easy and comprehensive management with full control over your server. As an admin, you can use all available options and features the game offers directly in-game. All the steps you need to take to assign admin rights for your server are described below.
To register as an admin, installing SourceMod or MetaMod is mandatory. You also need your Steam account’s Steam ID. There are several ways to obtain it: you can either use an external website offering this service or retrieve it directly via the in-game console.
To get your SteamID via a website, first open your Steam profile and right-click anywhere on the page to copy the profile URL. Then paste this URL on one of the following sites:
The site will show your SteamID and other account info. For admin registration, you need the SteamID32:
steamID32: STEAM_0:1:XXXXXX
Alternatively, you can retrieve your SteamID in-game via the console. Start the game, connect to your server, open the console, and enter the command:
status
This will display your connection details including your SteamID. Then connect to the server via FTP and open the file admins.cfg, located at:
.../addons/sourcemod/configs/
The file contains a sample entry you can copy and adjust:
Admins
{
"Player name"
{
"auth" "steam"
"identity" "STEAM_0:1:XXXXX"
"flags" "abcdef"
}
}
The player name does not have to match your Steam account name; it is only for internal reference. The auth field defines the authentication method, which remains steam. In identity, enter your SteamID32. The flags specify the rights assigned to the admin:
| Permission | Flag | Description |
|---|---|---|
| reservation | a | Slot reservation |
| generic | b | Basic rights (required) |
| kick | c | Kick players |
| ban | d | Ban players |
| unban | e | Lift bans |
| slay | f | Kill or slap players |
| changemap | g | Change map |
| cvar | h | Change server variables |
| config | i | Execute server configurations |
| chat | j | Extended chat rights |
| vote | k | Start admin votes |
| password | l | Set server password |
| rcon | m | Execute RCON commands |
| cheats | n | Enable sv_cheats |
| root | z | Full access |
Multiple flags can be combined (e.g., bc for kick rights). For full access, use only z. You can open the admin menu by typing admin in chat or sm_admin in the console.
Here is a list of common admin commands you can use on your server.
| Command | Description |
|---|---|
sm_kick <player> | Kicks a player |
sm_ban <player> <time> [reason] | Bans a player for X minutes (0 = permanent) |
sm_unban <SteamID/IP> | Lifts a player's ban |
sm_slay <player> | Kills the player immediately |
sm_slap <player> [damage] | Slaps the player (optional damage) |
sm_map <mapname> | Changes to the specified map |
sm_cvar <cvar> <value> | Sets a server config variable at runtime |
sm_vote <topic> | Starts a simple vote |
sm_restartgame <seconds> | Restarts the game after a countdown |
sm_say <message> | Sends a message to global chat |
