Skip to content

Left 4 Dead 2: Becoming an Admin

Discover how to grant administrator rights to have full control over your server and effectively manage game features

30 November 20263 min read44 Views0 helpful

Don't have your own server yet? Host your Left 4 Dead 2 server with ZAP-Hosting from €4.49 / month.Or try 3 days from €0.81

Introduction

Assigning administrator rights gives you simple and comprehensive management with full control over your server. As an admin, you can use all the available options and features offered by the game directly in-game. The steps you need to follow to assign admin rights on your server are described below.

Configuration

To register as an admin, Metamod:Source and SourceMod must be installed on your server. You also need the Steam ID for your Steam account. There are several ways to get it: you can either use an external website that offers this service or retrieve it directly through the in-game console.

To get your SteamID from a website, first open your Steam profile and right-click anywhere on the page to copy the profile URL. Then paste this URL into one of the following websites:

The website will show you your SteamID and other account information. You need the SteamID32 to register as an admin:

Code
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:

Code
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:

Code
left4dead2/addons/sourcemod/configs/

Add a separate line for each admin:

Code
"STEAM_0:1:XXXXXX" "99:z" // Dein Name

Your SteamID32 goes in the first set of quotation marks. In the second value, the immunity level comes before the colon (99; 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 gets:

PermissionFlagDescription
reservationaSlot reservation
genericbBasic permissions (required)
kickcKick players
bandBan players
unbaneUnban players
slayfKill or hit players
changemapgChange the map
cvarhChange server values
configiExecute server configurations
chatjExtended chat permissions
votekStart admin votes
passwordlSet the server password
rconmRun RCON commands
cheatsnEnable sv_cheats
rootzFull access

You can combine multiple flags (e.g. bc for kick permissions). Use only z for full access. Save the file, then enter sm_reloadadmins in the server console or restart the server so SourceMod reloads the admins. Open the admin menu in chat with !admin or in the game console with sm_admin.

Info: admins_simple.ini or admins.cfg

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.

Admin Commands

Here is a list of common admin commands you can use as an admin on your server.

CommandDescription
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>Kills the player immediately
sm_slap <player> [damage]Slaps the player (optionally with damage)
sm_map <mapname>Switches 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 in global chat

Conclusion

If you've followed all the steps, congratulations—you should have successfully configured admin rights for your server. If you have any other questions or run into any problems, our support team is available every day and will be happy to help! 🙂

Free tools

Left 4 Dead 2 Tools

View all

FAQ

Frequently asked questions

Metamod:Source and SourceMod must be installed, and you'll need your SteamID32. You can get it from a website such as steamrep.com, steamidfinder.com, or steamid.io, or by using the in-game console command status.
Add one line per admin to admins_simple.ini in the left4dead2/addons/sourcemod/configs/ folder, for example, "STEAM_0:1:XXXXXX" "99:z" (SteamID32, immunity, and flags). Then enter sm_reloadadmins or restart the server.
The z flag (root, full access).

Feedback

Was this article helpful?

Your feedback helps us prioritize and improve content.

0 of 0 people found this article helpful.

Personal support

Need more help than the guide provides?

Our ZAP-Hosting support team knows your product — briefly describe your issue and we'll help you personally.

Zappy knows this guide and answers you right in the chat.