Skip to content
🧮 Is Lifetime with ZapX Pass worth it? Work it out for your own servers in 30 seconds. Open the Lifetime calculator →

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

12 November 20267 min read106 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.

Before you begin

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.

Info

Always install Metamod:Source first, followed by SourceMod. SourceMod is loaded by Metamod:Source and won't work without it.

Installing via the file manager

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.

  1. Stop your server in your game server management panel.
  2. Open the Files tab and go to your game's folder, for example cstrike for Counter-Strike: Source.
  3. Upload the Metamod:Source archive to this folder using Upload or drag and drop.
  4. Click Extract in the archive's row. The game folder is already set as the destination folder; click Extract to confirm.
  5. Repeat steps 3 and 4 with the SourceMod archive. Confirm the prompt if you are asked to overwrite existing files.
  6. Delete the two uploaded archives afterward; you won't need them anymore.
  7. 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:

Code
cstrike/addons/metamod
cstrike/addons/sourcemod
cstrike/cfg/sourcemod

Installing via SFTP

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.

  1. Extract both archives on your PC, for example with 7-Zip. You'll get the addons and cfg folders.
  2. Stop your server.
  3. Connect to your server via SFTP and open the game folder, for example tf for Team Fortress 2.
  4. Upload the addons and cfg folders to the game folder. Existing folders will be merged, and your existing files will be kept.
  5. Start your server again.

Verify the installation

After starting your server, open the Console tab in your game server management panel and enter these commands one after the other:

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

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.

Common issues

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.

Conclusion

You've installed Metamod:Source and SourceMod on your Source game server, learned how to add plugins, and set yourself up as an admin. If you have any other questions or need help, our support team is here for you every day! 🙂

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 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.