Half-Life Deathmatch: Source

Half-Life Deathmatch: Source

How to change "maxplayers" when creating a server?
When I create a server on my PC (not dedicated. I play on it), there is no way to specify the number of players in the menu. After starting, I specify "maxplayers 8" through the console.
It produces a message:
Cannot change maxplayers while the server is running half-life.
How can I indicate the number of players when creating the Half-Life Deathmatch: Source server?
Last edited by ldi.gsmn; Apr 25, 2020 @ 6:40am
< >
Showing 1-8 of 8 comments
*1157* Apr 25, 2020 @ 2:03pm 
While in menu for server but you have not started the server yet type

maxplayers xx xx being the number you want, the server will "echo" maxplayers set to xx.

Last edited by *1157*; Apr 25, 2020 @ 2:03pm
76561199048282841 Apr 26, 2020 @ 4:18am 
in the menu for the server (create server),
where can i type "maxplayers xx xx"?
no such field
76561199048282841 Apr 28, 2020 @ 7:56am 
What I've done:
In the file ...\Steam\steamapps\common\Half-Life 1 Source Deathmatch\hl1mp\cfg\game.cfg
add line
maxplayers xx
where "xx" is the maximum number of players
it works!
Last edited by ldi.gsmn; Apr 28, 2020 @ 7:56am
*1157* Apr 29, 2020 @ 7:55pm 
while in menu open console
76561199048282841 Apr 30, 2020 @ 6:13am 
Originally posted by *1157*:
while in menu open console
I tried it. I changed maxplayers in the console to 8, then created a server. when server creating, it changes maxplayers to 32 for itself
Last edited by ldi.gsmn; Apr 30, 2020 @ 6:20am
*1157* May 2, 2020 @ 6:12pm 
Good you got it working, the cvar would only work until map change so you need a cfg file
on a listen server it's called game.cfg (same as server.cfg on a dedicated server) here is
MotorCitys server config's if you want to change some other things.


hostname "YOUR_SERVER_NAME_HERE"

rcon_password ""

exec autoexec.cfg
exec listip.cfg
exec banned_ip.cfg
exec banned.cfg
exec banned_user.cfg

sv_password ""
sv_cheats 0
host_timescale 1.0

sv_voiceenable 1

sv_downloadurl "YOUR_FASTDOWNLOAD_SERVER_URL_HERE"
sv_allowdownload 1
sv_allowupload 1
sv_region 255


mp_flashlight 1 // Enables the flashlight
mp_footsteps 1 // Enables footsteps
mp_friendlyfire 1 // Allow teammates to deal damage to eachother
mp_timelimit 20 // Map length in minutes
mp_fraglimit 20 // Map length in kills
mp_allowspectators 1 // Allows spectators if 1
mp_weaponstay 1
mp_forcerespawn 0


// Physics settings that can vary depending on the game
sv_accelerate 5
sv_airaccelerate 10
sv_friction 4
sv_gravity 750
sv_maxspeed 300
phys_pushscale 1
sv_bounce 0

mp_teamplay 0
mp_teamlist ""

sk_plr_dmg_grenade 150
sk_plr_dmg_crowbar 200
sk_plr_dmg_9mm_bullet 16
sk_plr_dmg_357_bullet 200
sk_plr_dmg_buckshot 12
sk_plr_dmg_mp5_grenade 50
sk_plr_dmg_rpg 120
sk_plr_dmg_xbow_bolt_npc 5
sk_plr_dmg_hornet 2
sk_plr_dmg_egon_narrow 15
sk_plr_dmg_egon_wide 15
















Last edited by *1157*; May 2, 2020 @ 6:15pm
*1157* Thanks!
Boxxed Jun 1, 2020 @ 4:05pm 
265rfdewrvfcerjhntgflkjrf
< >
Showing 1-8 of 8 comments
Per page: 1530 50