How to change the max players shown in Half-Life 2: Deathmatch
Add sv_visiblemaxplayers 12 to hl2mp/cfg/server.cfg; the browser shows 12 slots while the real limit stays the same.
sv_visiblemaxplayers
Overrides the player limit the server browser shows. -1 shows the real number of slots.
sv_visiblemaxplayers <players> Examples
sv_visiblemaxplayers 12 The browser shows 12 slots.
sv_visiblemaxplayers -1 Shows the real limit.
Arguments
playersRequired- Slots to show, or -1 for the real limit.
What it does
Use it to advertise fewer slots than the server has, for example to keep a slot free for an admin who joins with the address.
Good to know
- It only changes what the browser shows. SLASHPLAY starts Half-Life 2: Deathmatch with 16 slots.
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 hl2mp/cfg/server.cfg. New to this? Start a HL2DM server first.
Your own
HL2DM server.
From $0.03 an hour, only while it runs. New accounts get 6 free tokens.