Game servers by the hour. Pay only when you play.

SourceMod server admin: !admin menu, kick, ban, map

Short answer

You already are admin. Deploy, join with the same Steam account and type !admin in chat. On HL2:DM and Fistful of Frags, use chat commands like !kick and !map.

Ten Source games on 2hours.gg come with SourceMod, and the Steam account that deployed the server is already its admin. There is nothing to install and nothing to configure.

Join with the same Steam account you deployed with. Any other account is a normal player.

What the server sets up for you

  • MetaMod:Source and SourceMod 1.12, already installed when your server starts.
  • The stock admin plugins: Admin Menu, Basic Commands, Basic Bans, Basic Votes, Player Commands and Fun Commands.
  • You as the top admin (root, in addons/sourcemod/configs/admins_simple.ini): no other admin can kick or ban you.

Open the SourceMod admin menu

Type !admin in chat, or sm_admin in the console. You pick a player or a map from a list instead of typing names. Two games cannot show it: see your game below.

SourceMod chat commands (!kick, !ban, !map)

Type them in chat with ! in front, or in the console with sm_ in front (!kick is sm_kick):

!kick <name>
Remove a player from the server.
!ban <name> <minutes>
Ban a player for that many minutes. 0 bans them until this server closes.
!slay <name>
Kill a player on the spot.
!map <map>
Change the map right away.
!votemap <map>
Ask everyone to vote on the next map.
!who
List the players and who has admin.

Start a command with / instead of ! and it runs without showing in chat: /kick <name>.

SourceMod admin from the web console

The console on your server card has an Admin section with three buttons: who is on (sm_who), the loaded plugins (sm plugins list) and reload the admin list (sm_reloadadmins). You can type any sm_ command there too, for example sm_kick followed by a name. It works when nobody is in game.

Your game

If SourceMod fails to load

If the download fails when the server boots, the server still starts and the web console still works. Only the in-game admin is missing. Click sm plugins list in the console: Unknown command means SourceMod did not load.

Questions

How do I become admin on my SourceMod server?

On 2hours.gg you already are. The server installs MetaMod:Source and SourceMod when it boots and makes the Steam account that deployed it the top admin. Join with that account.

How do I open the SourceMod admin menu?

Type !admin in chat, or sm_admin in the console. Half-Life 2: Deathmatch and Fistful of Frags cannot display SourceMod menus, so use the chat commands there.

How do I ban a player with SourceMod?

Type !ban <name> <minutes> in chat. 0 minutes bans them until the server closes. In the console the same command is sm_ban.

Can I run a SourceMod command without it showing in chat?

Yes. Start it with / instead of !, for example /kick <name>.

← Back to all guides