How to set a join password in Half-Life 2: Deathmatch
On SLASHPLAY, turn on Password protection on the General tab; the running server takes it at once. Elsewhere, set sv_password "squad42" in the console or server.cfg.
sv_password
Sets the password players must enter to join. Empty means anyone with the address can join.
sv_password "<password>" Examples
sv_password "squad42" Locks the server with a password.
sv_password "" Opens the server again.
Arguments
passwordRequired- The join password, or empty for none.
What it does
Players type it in their console with password before connect, or get asked for it when they join.
Good to know
- SLASHPLAY manages this one: set it with Password protection on the General tab of the server page. The running server takes it at once and the copied connect line includes it.
- Setting it in the console or in
hl2mp/cfg/server.cfgoverrides the dashboard, and the copied connect line stops working.
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.