Pārlūkot izejas kodu

Set maxplayers at start of the server

It can't be set in config file, while server is running already. Let users to set this here.
Adam Bukowski 12 gadi atpakaļ
vecāks
revīzija
f8d4a958db
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2 1
      CounterStrike/csserver

+ 2 - 1
CounterStrike/csserver

@@ -16,7 +16,8 @@ email="email@example.com"
 defaultmap="de_aztec"
 port="27015"
 clientport="27005"
-parms="-game cstrike +map ${defaultmap} -strictportbind -port ${port} +clientport ${clientport}"
+maxplayers="16"
+parms="-game cstrike +map ${defaultmap} -strictportbind -port ${port} +clientport ${clientport} +maxplayers ${maxplayers}"
 
 #### Advanced Variables ####