Granting administrator privileges gives you simple, comprehensive administration with full control over your server. As an admin, you can use all the options and features available in the game directly in-game. The steps you need to follow to grant administrator privileges on your server are described below.
To register as an admin, Metamod:Source and SourceMod must be installed on your server. You also need your Steam account's Steam ID. There are several ways to find it: you can use an external website that offers this service, or retrieve it directly through the in-game console.
To find your SteamID using a website, first open your Steam profile and right-click anywhere on the page to copy the profile URL. Then paste the URL into one of the following websites:
The website will show your SteamID along with other account information. You need the SteamID32 to register as an admin:
steamID32: STEAM_0:1:XXXXXX
Alternatively, you can retrieve your SteamID in-game through the console. Start the game, connect to your server, open the console, and enter the command:
status
This displays your connection details, including your SteamID. Next, open the admins_simple.ini file in the Files tab (or via SFTP) in the following folder:
nmrih/addons/sourcemod/configs/
Add a separate line for each admin:
"STEAM_0:1:XXXXXX" "99:z" // Dein Name
Your SteamID32 goes in the first set of quotation marks. In the second value, the number before the colon is the immunity level (99, meaning admins with a lower level cannot kick or ban you), followed by the flags. If you don't need immunity, the flags alone are enough, e.g. "bce". Everything after // is a comment and is only there to help you keep track. The flags determine which permissions the admin receives:
| Permission | Flag | Description |
|---|---|---|
| reservation | a | Reserve slots |
| generic | b | Basic permissions (required) |
| kick | c | Kick players |
| ban | d | Ban players |
| unban | e | Unban players |
| slay | f | Slap or kill players |
| changemap | g | Change maps |
| cvar | h | Change server settings |
| config | i | Execute server configurations |
| chat | j | Extended chat permissions |
| vote | k | Start admin votes |
| password | l | Set the server password |
| rcon | m | Run RCON commands |
| cheats | n | Enable sv_cheats |
| root | z | Full access |
You can combine multiple flags (e.g. bc for kick permissions). To grant full access, use only z. Save the file, then enter sm_reloadadmins in the server console or restart the server so SourceMod reloads the admin list. Open the admin menu in chat with !admin or in the game console with sm_admin.
SourceMod also reads admins from the admins.cfg file. However, it uses its own nested format with "auth", "identity", and "flags". Do not copy the simple lines from admins_simple.ini into admins.cfg, or SourceMod will no longer be able to read the file. You can find related errors in addons/sourcemod/logs/errors_<Datum>.log.
Here is a list of common admin commands you can use as an admin 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> | Unbans a player |
sm_slay <player> | Instantly kills the player |
sm_slap <player> [damage] | Slaps the player (optionally dealing damage) |
sm_map <mapname> | Changes to the specified map |
sm_cvar <cvar> <value> | Sets a server configuration 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 |
