TF2 Admin Setup: admins_simple.ini and SourceMod Flags
Once SourceMod is installed, you decide who can run admin commands by editing the admin list. The simplest method is a text file called admins_simple.ini.
Where the file is
Open tf/addons/sourcemod/configs/admins_simple.ini in the Files tab. Lines starting with // are comments.
Adding an admin
Each admin is a line made of an identity and a set of flags, both in quotes. The identity is normally a SteamID. For example:
- "STEAM_0:1:12345" "z"
The flag z gives full root access, so use it sparingly. Flags are single letters, each giving a group of permissions. Common ones include:
- b: generic admin
- c: kick players
- d: ban players
- g: change the map
- z: root, everything
You can combine letters, for example "bcdg" for a moderator who can kick, ban and change maps but nothing else. Check the SourceMod documentation for the full list of flags.
Finding a SteamID
Players can get their ID from a profile lookup site. SourceMod accepts several formats, so use one that matches the examples in the file header, and make sure it belongs to the right person.
Apply changes
- Save the file.
- In the Console tab, type sm_reloadadmins, or restart the server.
- Have the admin join and type sm_admin in chat or console to open the admin menu.
Immunity and groups
For larger teams, SourceMod also supports groups with immunity levels in other config files. A higher immunity admin cannot be kicked or banned by a lower one. Read the documentation before changing these.
Troubleshooting
- Menu does not open: the admin was not recognized. Recheck the SteamID and flags and reload.
- Quotes are missing or mismatched: the line is ignored.
- Wrong ID format: copy the exact format SourceMod expects.
Keep root access to as few people as possible.