Forum
Scripts
Gamemode Change - Map to Map
Gamemode Change - Map to Map
5 replies
1

NanuPlayer: { sv_gamemode 0; } didnt do that?
MaksDragon: no, this does not work. https://cs2d.com/help.php?cat=all&cmd=mp_autogamemode#cmd
You can use a script that knows all your maps with the corresponding types and changes the gamemode on serverstart (aka mapchange)
MaksDragon wrote should work. You have to put these statements behind map names in sys/mapcycle.cfg. The game should then automatically switch to the specified mode when the map is loaded (I'm not sure if this works always or only if the map is actually switched via a map cycle mechanic like max rounds etc.)Maybe some Lua with
mapchange hook could work as well.
DC: Thank you very much! I didn't know it worked like this. Thanks for explaining.@
MaksDragon: Thanks!
1

Offline