Hi,
The only consistent way I've found to start the server in a specific game mode and keep it there is:
1. In your
autoexec.cfg add "map mapname gamemode" where mapname is the name of the map you want as default on the server and gamemode is the preferred game mode:
- example: map c5m1_waterfront versus will load Parish in versus mode.
Now, if a lobby joins your server having choosen another gamemode (e.g. co-op), you server will switch to that mode. If you want the server to run only one game mode:
1. In your
server.cfg add sm_cvar mp_gamemode "gamemode" where gamemode is the only game mode you want on the server.
- example: sm_cvar mp_gamemode "versus" will keep the server in versus game mode, allowing only versus lobbies to connect. Of course, using sm_cvar to unlock hidden cvars assumes you have installed Metamod and Sourcemod.
- note: since versus players from public lobbies are notorious for leaving games, make sure you also allow other players to connect to your server directly without using a lobby with sv_allow_lobby_connect_only "0" in you server.cfg.This allow players to join an existing versus match on your server as other players leave and open up slots.
Regards,
PG