Skip to content
/SLASHPLAY

How to ban a player in L4D2

Type banid 0 STEAM_1:0:12345678 kick in the Console tab of the server page for a permanent ban, then writeid to save it to banned_user.cfg.

banid

Bans a player by userid or Steam ID for a number of minutes, 0 for permanent. Add kick to remove them now.

banid <minutes> <userid|steamid> [kick]

Examples

banid 0 STEAM_1:0:12345678 kick

Permanent ban, and kick now.

banid 60 5 kick

One hour for userid 5.

Arguments

minutesRequired
Ban length in minutes, 0 for permanent.
userid|steamidRequired
The player's userid or Steam ID from status.
kickOptional
Also kick the player now.

What it does

Bans by Steam ID follow the player's account, so they hold when the player's address changes.

Good to know

  • Run writeid afterwards to save permanent bans to left4dead2/cfg/banned_user.cfg, which SLASHPLAY keeps with every save.
  • To load saved bans at each start, put exec banned_user.cfg in server.cfg.

Run it on your server

On a SLASHPLAY server, type it in the Console tab of the server page; the reply shows right under it. A value set there lasts until the server restarts. To keep it, add the line to left4dead2/cfg/server.cfg. New to this? Start a L4D2 server first.

Your own
L4D2 server.

From $0.03 an hour, only while it runs. New accounts get 6 free tokens.