Skip to content
Back to Knowledge Base
Modding6 min readUpdated 2026-04-11

SourceMod for CS2/TF2

Overview

SourceMod (SM) is a plugin framework for Source engine games, including CS2 and Team Fortress 2. It requires Metamod:Source as a base. This guide covers installation and basic plugin management.

1. Install Metamod:Source

  1. Download the latest Metamod:Source build for your game from metamodsource.net.
  2. Extract and upload the addons/ folder to your game's root directory (e.g. /game/csgo/ for CS2).
  3. Restart the server.
  4. Verify by typing meta version in the console.

2. Install SourceMod

  1. Download SourceMod from sourcemod.net (stable or dev build).
  2. Extract and upload the addons/ and cfg/ folders to the same game directory.
  3. Restart the server.
  4. Verify: sm version in the console.

Note for CS2: SourceMod for CS2 is still under active development. Use the latest dev builds and check AlliedModders forums for CS2-specific compatibility notes.

3. Installing Plugins

  1. Download .smx plugin files from AlliedModders forums.
  2. Upload to /addons/sourcemod/plugins/.
  3. Restart or type sm plugins refresh in console.
  4. Configure plugins via files in /addons/sourcemod/configs/.

Essential plugins:

  • Admin Menu — in-game admin interface.
  • Map Chooser / Rock The Vote — democratic map voting.
  • Warmod — competitive match management for CS2.
  • Get5 — tournament match system with Veto.

4. Setting Up Admins

Edit /addons/sourcemod/configs/admins_simple.ini:

// Format: "SteamID" "flags"
"STEAM_0:1:12345678" "99:z"  // Full admin
"STEAM_0:0:87654321" "99:b"  // Kick/ban only

Common admin flags:

  • z — full root access
  • b — ban players
  • c — kick players
  • d — slay players
  • e — change maps
  • f — change cvars

Was this article helpful?