Plugins are what make a Counter-Strike: Source (CS:S) server your own. Admin menus, map voting, custom commands and thousands of community plugins all run on SourceMod. Because CS:S runs on the Source engine, you first install two free framework tools, Metamod:Source and SourceMod, and then add plugins on top.
Always make sure your server is completely stopped in your MintServers panel before uploading or extracting framework files, plugins or extensions. Replacing files while the server is running can cause problems. For example, overwriting an extension that is currently loaded can crash a Linux server.
Step 1: Install Metamod:Source and SourceMod
Metamod:Source hooks into the game, and SourceMod runs on top of it. You need both, and you need to install them in this order. Use the stable version of each.
cstrike folder. This is your main Counter-Strike: Source game directory.cstrike folder.addons folder, and a few config files, into your server files. You can delete the original archive files afterwards to save space.The newest SourceMod build on the downloads page sometimes has no Linux file yet. If the Linux link is empty, use the most recent build that does have a Linux download.
When you are done, your folders should look like this:
📁 cstrike (your Counter-Strike: Source game directory)
📁 addons
📁 sourcemod (SourceMod)
meta list into the console text box and press Enter. You should see SourceMod in the list.If a message about "wrong ELF class: ELFCLASS64" appears when the server starts, you can ignore it. It is normal on a 32-bit server, as long as the commands above work.
Step 2: Install a Plugin
With the framework installed, your server is ready for plugins. SourceMod plugins come as an .smx file. You can find them on the SourceMod plugins page and the AlliedModders forums.
.smx plugin file to your computer. Read the plugin's page first, because some plugins also need extra files, such as translations, gamedata or an extension.📁 cstrike
📁 addons
📁 sourcemod
📁 plugins
.smx file into the plugins folder.plugins folder loads automatically.Many plugins create their own config file the first time they load. You will find these in
cstrike/cfg/sourcemod. Edit that generated file to change a plugin's settings.
Plugins That Are Already Included
SourceMod ships with a set of plugins that are switched on by default, so you do not need to download them. These include:
basecommandsChanging maps, kicking players and changing settings.
basebansBanning players.
basecommGagging and muting players.
basevotesVoting commands.
adminmenuThe in-game admin menu.
reservedslotsReserved slots for admins.
A few more, such as mapchooser, rockthevote, nominations and randomcycle, are included but switched off. They live in cstrike/addons/sourcemod/plugins/disabled.
Enable or Disable a Plugin Without Deleting It
.smx file from the disabled folder into the plugins folder.plugins into disabled.Some plugins cannot run together. Use either
mapchooser or randomcycle, never both. The same goes for the two SQL admin plugins, admin-sql-prefetch and admin-sql-threaded.
Step 3: Install Extensions (If a Plugin Needs One)
Some plugins need an extension to work. The plugin's download page will tell you if it does. Extensions are loaded only when a plugin needs them.
.so) version of the extension to your computer. Windows files (.dll) will not work on your panel.cstrike/addons/sourcemod/extensions.extensions folder. If the extension comes with extra folders such as gamedata or configs, upload their contents into the matching folders inside sourcemod.Some extensions come in a separate file for each Source game, named like
sdktools.ext.2.ep2v.so. For Counter-Strike: Source, pick the file with ep2v in its name. CS:S shares that build with Team Fortress 2, Day of Defeat: Source and Half-Life 2: Deathmatch.
Step 4: Check That Everything Loaded
Once your server is running, type these commands into the Console tab to check your plugins and extensions.
If your plugin appears in the list without a <Failed> label, it is working. These other commands also come in handy:
sm plugins load <name>Loads a plugin without a restart.
sm plugins unload <name>Unloads a plugin.
sm plugins reload <id>Reloads a plugin using its number from the list.
sm plugins refreshRefreshes the plugin list from disk.
sm plugins info <id>Shows details about a plugin, including why it failed.
Related Guides
Make yourself an admin so you can use the SourceMod admin menu and commands.
🛠️ Troubleshooting Plugin Issues
"sm" is an unknown commandMetamod:Source or SourceMod did not extract correctly. Check that the
addons folder sits directly inside cstrike, then restart the server.The plugin is not in the list at allThe
.smx file is not in cstrike/addons/sourcemod/plugins. Change the map or restart, then check again.The plugin shows <Failed>Type
sm plugins info <id> using the number from the list to see the reason.Could not find translation fileThe plugin's translation files were not uploaded, or went into the wrong folder. Upload them into
cstrike/addons/sourcemod/translations.Native "xyz" was not found or Required extension not runningThe plugin needs an extension that is missing or out of date. Install the right extension and check
sm exts list.Wrong gameThe plugin was made for a different game. Move it into the
disabled folder.Still stuck? Check the log files in cstrike/addons/sourcemod/logs. They show exactly what went wrong.Now that SourceMod is installed, you can make yourself an admin to use the admin menu and commands.
Still stuck?
Our team is happy to help. Open a ticket through the live chat button in the bottom-right corner of our website, or join our Discord and open a ticket there.
Join our Discord