Plugins on a Counter-Strike Source server run through Metamod:Source and SourceMod. You need both: Metamod:Source hooks into the Source Engine, and SourceMod builds on top of it to provide the plugin environment and the admin features.
Install Metamod:Source
-
Download Metamod:Source
Download the current stable version of Metamod:Source (currently the 1.12 branch) as a Linux package (.tar.gz). -
Stop the server
Stop your server via the dashboard. -
Connect via SFTP
Connect to your server via SFTP. -
Upload the files
Extract the archive and upload theaddonsfolder it contains to the following directory:/cstrike/Afterwards the folder
/cstrike/addons/metamod/exists. -
Start the server
Start your server and check in the server console withmeta versionwhether Metamod:Source was loaded.
Install SourceMod
-
Download SourceMod
Download the current stable version of SourceMod (currently the 1.12 branch) as a Linux package (.tar.gz). -
Stop the server
Stop your server via the dashboard. -
Upload the files
Extract the archive and upload theaddonsandcfgfolders it contains via SFTP to the following directory:/cstrike/Existing folders are merged, not replaced. Afterwards the folder
/cstrike/addons/sourcemod/exists. -
Start the server
Start your server and check in the server console withsm versionwhether SourceMod was loaded.
Install plugins
-
Download the plugin
Download the plugin you want. Ready-to-use plugins come as a.smxfile. -
Stop the server
Stop your server via the dashboard. -
Upload the plugin
Upload the.smxfile via SFTP to the following directory:/cstrike/addons/sourcemod/plugins/ -
Start the server
Start your server and check withsm plugins listwhether the plugin was loaded.
Add custom maps
-
Download the map
Download the map you want. Maps come as a.bspfile, sometimes together with additional files such as sounds or models. -
Stop the server
Stop your server via the dashboard. -
Upload the map
Upload the.bspfile via SFTP to the following directory:/cstrike/maps/ -
Start the server
Start your server. Usechangelevel <map name>in the server console to switch to the new map.
Set up FastDL
With FastDL your players automatically download custom maps and additional files from a web space when connecting, instead of having to install them manually.
-
Put the files on your web space
Create a folder on your web space and mirror the folder structure of the server inside it, for examplemaps/,sound/andmodels/. Copy the required files into the matching folders. -
Compress the files
Compress the files on the web space in the.bz2format.de_example.bspbecomesde_example.bsp.bz2. -
Add the download address
Open the following file via SFTP and add the address of your FastDL folder:/cstrike/cfg/server.cfgsv_downloadurl "https://your-domain.com/fastdl/" -
Start the server
Save the file and restart your server.
Folder structure at a glance
/cstrike/addons/metamod/
/cstrike/addons/sourcemod/
/cstrike/addons/sourcemod/plugins/ <- .smx plugin files
/cstrike/addons/sourcemod/configs/ <- configurations, e.g. admin lists
/cstrike/maps/ <- maps
/cstrike/cfg/ <- server.cfg and other configurations
Verify the installation
Enter the following commands in the server console:
| Command | Description |
|---|---|
meta version |
Show the Metamod:Source version |
meta list |
Show the extensions loaded by Metamod |
sm version |
Show the SourceMod version |
sm plugins list |
Show the loaded SourceMod plugins |
