NEW 📢 Limited launch offer: up to 70% off your first month on every game!See plans

How to add admins and kick or ban players on your Day of Defeat: Source server

Day of Defeat: SourceUpdated Oct 30, 20264 min read

To make someone admin on a Day of Defeat: Source server on PlayNHost, install SourceMod, add their SteamID with the flags "99:z" to dod/addons/sourcemod/configs/admins_simple.ini, and type sm_reloadadmins in the Console. Admins then kick with sm_kick and ban with sm_ban, in game or from the panel's Console tab.

SourceMod is not on a new server. Install it first: How to install SourceMod on your Day of Defeat: Source server.

Make yourself admin

  1. Join your server in the game.
  2. In the panel, click the Console tab, type status in the Type a command box and press Enter. Find your name in the list and copy your SteamID from the same line, for example STEAM_0:1:16 or [U:1:33].
  3. Click the Files tab and open dod/addons/sourcemod/configs/admins_simple.ini.
  4. Add a new line with your SteamID and the flags, both in quotes: "STEAM_0:1:16" "99:z".
  5. Click Save content.
  6. On the Console tab, type sm_reloadadmins and press Enter.
  7. In the game, open the developer console with ~, type sm_admin and press Enter. Back in the game, the admin menu opens.
The file editor with admins_simple.ini open and an admin line added, on a Day of Defeat: Source server

SourceMod reads the SteamID in any of its forms: STEAM_0:1:16, [U:1:33] or the 17-digit number from a Steam profile link (SourceMod's admin code turns each into the same ID).

What do the admin flags mean?

99:z gives root access: every flag, with immunity level 99, so admins with a lower level cannot kick or ban you. For a moderator, give fewer flags, for example "STEAM_0:1:16" "bcd". The main flags, from AlliedModders' admin guide:

FlagAllows
aa reserved slot
bgeneric admin, needed for every admin
ckick other players
dban other players
eremove bans
gchange the map
zeverything, and ignores immunity

Kick, ban and unban players

Type these in the game console as an admin, or in the Console tab of the panel, which needs no admin rights. In chat, an admin can type the same command with ! instead of sm_, for example !kick, or with / to hide it from other players.

CommandWhat it does
sm_kick <name or #userid> [reason]kicks a player
sm_ban <name or #userid> <minutes> [reason]bans a player; 0 minutes is a permanent ban
sm_unban <steamid or ip>removes a ban
sm_map <map>changes the map
sm_wholists players and their admin rights

The #userid is the player's userid number shown by status, for example sm_ban #5 0 cheating. The commands come from SourceMod's admin command list.

Can I kick players without SourceMod?

Yes, from the Console tab. Valve's console command list has the engine's own commands:

  • status: lists the players, with their userid and SteamID.
  • kick: kicks a player by slot, userid or name, for example kick PlayerName.
  • banid, removeid and listid: add a SteamID to the ban list, remove it, and list the bans.
  • writeid: writes the list of permanent bans to the file banned_user.cfg.

SourceMod's commands are easier for bans, because they take the player's name and the length in one line.

Is there a kick button in the panel?

No. The Active players card on Overview shows who is online and how long they have been connected, without kick or ban buttons for this game. Use the commands above.

Related: How to use the Console and RCON on your Day of Defeat: Source server and How to set a join password on your Day of Defeat: Source server.

Already hosting it somewhere else? Move your server to us

OUR LATEST BLOGS