Skip to content

Source Games: Install SourceMod and Metamod:Source

Learn how to install Metamod:Source and SourceMod on your Source game server, add plugins, and set yourself up as an admin via admins_simple.ini → Find out more

10 November 20267 min read1 Views0 helpful

Introduction

Metamod:Source and SourceMod are the standard extensions for Source engine-based game servers, such as Counter-Strike: Source, Team Fortress 2, or Left 4 Dead 2. Metamod:Source provides the foundation and hooks into the engine, while SourceMod builds on top of it. Together, they let you install plugins, assign admins different levels of access, and manage your server with commands.

This guide explains how to install Metamod:Source and SourceMod, add plugins, and set yourself up as an admin.

Supported games and game folders

Metamod:Source and SourceMod are always installed in your server's game folder, not directly in the root directory. The folder depends on the game:

GameGame folderGame-specific guides
Counter-Strike: SourcecstrikeInstall plugins, Become an admin
Counter-Strike: Global OffensivecsgoInstall plugins, Become an admin
Team Fortress 2tfInstall plugins, Become an admin
Left 4 Dead 2left4dead2Install plugins, Become an admin
Day of Defeat: SourcedodInstall plugins, Become an admin
No More Room In HellnmrihInstall plugins, Become an admin
Important

Counter-Strike 2 does not use SourceMod. CS2 runs on the Source 2 engine. For CS2, install Metamod:Source 2.x together with CounterStrikeSharp; the steps are quite different from those in this guide. Follow the guide CS2: Installing plugins for CS2, and CS2: Becoming an admin for admin permissions.

Info

Counter-Strike 1.6 is based on the older GoldSrc engine and uses AMX Mod X instead of SourceMod. Find out how to install plugins in CS 1.6: Installing plugins.

Installing plugins

You can find SourceMod plugins mainly in the SourceMod plugin list, which links to plugin threads in the AlliedModders forum. A plugin consists of at least one .smx file. Some plugins also include configuration, translation, or gamedata files.

Upload the files to the appropriate folders under addons/sourcemod in the game folder:

File typeDestination folder
Plugin (.smx)addons/sourcemod/plugins
Configuration filesaddons/sourcemod/configs
Translationsaddons/sourcemod/translations
Gamedata (.txt)addons/sourcemod/gamedata
Extensions (.ext.so)addons/sourcemod/extensions

Follow the folder structure included in the plugin download. SourceMod loads new plugins at the next map change or restart. To load a plugin without restarting, run sm plugins load pluginname in the console.

Tip

Some plugins require a database, for example for bans or statistics. Create a database in the Databases tab and enter the login details in the addons/sourcemod/configs/databases.cfg file.

Managing and disabling plugins

Use these console commands to keep track of your plugins:

CommandDescription
sm plugins listDisplays all loaded plugins and their status
sm plugins load pluginnameLoads a plugin without restarting
sm plugins unload pluginnameUnloads a plugin until the next map change
sm plugins refreshLoads new and changed plugins from the plugin folder

To permanently disable a plugin without deleting it, move the .smx file to the addons/sourcemod/plugins/disabled folder. SourceMod doesn't load plugins from this folder. To remove a plugin, delete the .smx file and its related configuration files.

Becoming an admin with SourceMod

You assign admin permissions in the admins_simple.ini file. You'll need your Steam account's SteamID.

Find your SteamID

The easiest way to find your SteamID is with our SteamID finder. Enter the URL of your Steam profile. The tool will show you all ID formats, including the classic SteamID format STEAM_0:1:12345678.

Alternatively, connect to your server and enter status in the game console. Your ID will appear in the player list, depending on the game as STEAM_1:1:12345678 or [U:1:24691357]. SourceMod accepts both formats. For the classic SteamID, it doesn't matter whether it starts with STEAM_0 or STEAM_1.

Add an admin to admins_simple.ini

In the Files tab or via SFTP, open the addons/sourcemod/configs/admins_simple.ini file in your game folder. Add a separate line for each admin at the end of the file:

Code
"STEAM_0:1:12345678" "99:z"

The first value is the SteamID. The second value consists of immunity before the colon and permission flags after it. 99:z means immunity 99 and full access. Admins with a lower immunity level can't kick or ban you.

Instead of full access, you can assign individual permissions by writing several flags in a row, for example 50:bcd for basic permissions, kicking, and banning:

FlagPermissionDescription
areservationReserved slot
bgenericBasic admin permissions (required for all admins)
ckickKick players
dbanBan players
eunbanLift bans
fslayKill or slay players
gchangemapChange the map
hcvarChange server variables
iconfigExecute configuration files
jchatAdvanced chat commands
kvoteStart votes
lpasswordSet the server password
mrconRun RCON commands
ncheatsUse sv_cheats and cheat commands
zrootFull access to all permissions

Save the file, then enter sm_reloadadmins in the console. The new admins will be added without a restart. If the permissions don't take effect immediately for a player who's already connected, have them reconnect once.

Info

In addition to admins_simple.ini, there's an admins.cfg file in the same folder, where you can manage admins in more detail using names and groups. For most servers, admins_simple.ini is more than sufficient.

Open the admin menu

As an admin, open the in-game admin menu by typing !admin in chat or entering sm_admin in the game console. Depending on your permissions, you'll find options to kick or ban players, change the map, and more.

FAQ

Frequently asked questions

Install Metamod:Source first, followed by SourceMod. SourceMod is loaded by Metamod:Source and won't work without it. Install both packages in your server's game folder, such as cstrike for Counter-Strike: Source.
No. Counter-Strike 2 runs on the Source 2 engine and doesn't support SourceMod. For CS2, install Metamod:Source 2.x with CounterStrikeSharp, as explained in the CS2: Installing plugins guide.
In your game server's Console tab, enter the commands meta version and sm version. If version information appears, everything is working. If you see Unknown command, the addons folder is usually not directly inside the game folder.

Feedback

Was this article helpful?

Your feedback helps us prioritize and improve content.

0 of 0 Users found this article helpful.

Personal support

Need more help than the guide provides?

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