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.
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:
| Game | Game folder | Game-specific guides |
|---|---|---|
| Counter-Strike: Source | cstrike | Install plugins, Become an admin |
| Counter-Strike: Global Offensive | csgo | Install plugins, Become an admin |
| Team Fortress 2 | tf | Install plugins, Become an admin |
| Left 4 Dead 2 | left4dead2 | Install plugins, Become an admin |
| Day of Defeat: Source | dod | Install plugins, Become an admin |
| No More Room In Hell | nmrih | Install plugins, Become an admin |
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.
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.
First, download the latest stable versions (Stable branch) of both extensions. Only current versions are compatible with regular game updates; older builds often stop working after an update.
Your Source game servers run on Linux, so choose the Linux package for each extension. You'll get two archives with names like mmsource-1.12.0-gitXXXX-linux.tar.gz and sourcemod-1.12.0-gitXXXX-linux.tar.gz.
Always install Metamod:Source first, followed by SourceMod. SourceMod is loaded by Metamod:Source and won't work without it.
The quickest way to install is directly in your browser using the file manager, which can extract archives for you. You don't need to extract the archives on your PC first.
- Stop your server in your game server management panel.
- Open the Files tab and go to your game's folder, for example
cstrikefor Counter-Strike: Source. - Upload the Metamod:Source archive to this folder using Upload or drag and drop.
- Click Extract in the archive's row. The game folder is already set as the destination folder; click Extract to confirm.
- Repeat steps 3 and 4 with the SourceMod archive. Confirm the prompt if you are asked to overwrite existing files.
- Delete the two uploaded archives afterward; you won't need them anymore.
- Start your server again.
After extraction, you'll find the addons folder in the game folder, with the metamod and sourcemod subfolders, as well as the cfg/sourcemod folder. For Counter-Strike: Source, the paths look like this:
cstrike/addons/metamod
cstrike/addons/sourcemod
cstrike/cfg/sourcemod
You can also upload the files using an SFTP program such as FileZilla or WinSCP. For instructions on getting your login details and connecting, see the Access via SFTP guide.
- Extract both archives on your PC, for example with 7-Zip. You'll get the
addonsandcfgfolders. - Stop your server.
- Connect to your server via SFTP and open the game folder, for example
tffor Team Fortress 2. - Upload the
addonsandcfgfolders to the game folder. Existing folders will be merged, and your existing files will be kept. - Start your server again.
After starting your server, open the Console tab in your game server management panel and enter these commands one after the other:
meta version
sm version
If everything is installed correctly, the console will display Metamod:Source version information for meta version and the SourceMod Version Information block for sm version, each with the installed version number.
If you see Unknown command instead, the corresponding extension wasn't loaded. Check that the addons folder is in the game folder, not in the root directory or an additional subfolder such as addons/addons, and that you used the Linux packages.
You can also run these commands in-game: connect to your server, open the game console, and enter meta version and sm version.
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 type | Destination folder |
|---|---|
Plugin (.smx) | addons/sourcemod/plugins |
| Configuration files | addons/sourcemod/configs |
| Translations | addons/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.
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.
Use these console commands to keep track of your plugins:
| Command | Description |
|---|---|
sm plugins list | Displays all loaded plugins and their status |
sm plugins load pluginname | Loads a plugin without restarting |
sm plugins unload pluginname | Unloads a plugin until the next map change |
sm plugins refresh | Loads 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.
You assign admin permissions in the admins_simple.ini file. You'll need your Steam account's 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.
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:
"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:
| Flag | Permission | Description |
|---|---|---|
a | reservation | Reserved slot |
b | generic | Basic admin permissions (required for all admins) |
c | kick | Kick players |
d | ban | Ban players |
e | unban | Lift bans |
f | slay | Kill or slay players |
g | changemap | Change the map |
h | cvar | Change server variables |
i | config | Execute configuration files |
j | chat | Advanced chat commands |
k | vote | Start votes |
l | password | Set the server password |
m | rcon | Run RCON commands |
n | cheats | Use sv_cheats and cheat commands |
z | root | Full 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.
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.
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.
SourceMod stops working after a game update. Game updates often change internal structures. Download the latest stable versions of Metamod:Source and SourceMod, then install them over your existing installation. Your configuration in addons/sourcemod/configs will remain intact as long as you only overwrite files from the new packages when uploading.
A plugin won't load. Enter sm plugins list in the console. Plugins with errors are marked there. You'll find the exact cause in the log files under addons/sourcemod/logs. Common causes include a missing dependency, gamedata files, or database login details. Very old plugins are often incompatible with current game versions; in that case, you'll need an updated version or an alternative plugin.
Admin permissions aren't working. Check that the SteamID is correct, enclosed in quotation marks, and belongs to your account, then run sm_reloadadmins. After that, reconnect to the server.
