Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // autostart on dedicated server launch
- //set autostartswitch to:
- // 0 for CTF
- // 1 for TDM
- // 2 for Sandbox
- // 3 for Zombies
- // 4 for RTDM
- // 5 for WAR
- // 6 for FULL CTF
- // 10 for TEST
- global autostartswitch = 6;
- newWorld( "" );
- switchGameState(0);
- startServer();
- if (autostartswitch == 0) //ctf
- {
- LoadRules("Rules/CTF/gamemode.cfg");
- LoadMapCycle( "Scripts/mapcycle.cfg" );
- LoadMap( "" );
- print(`Loaded CTF default config`);
- }
- else if (autostartswitch == 1) //tdm
- {
- LoadRules("Rules/TDM/gamemode.cfg");
- LoadMapCycle( "Scripts/mapcycle.cfg" );
- LoadMap( "" );
- print(`Loaded TDM default config`);
- }
- else if (autostartswitch == 2) //sandbox
- {
- LoadRules("Rules/Sandbox/gamemode.cfg");
- LoadMapCycle( "Scripts/mapcycle.cfg" );
- LoadMap( "" );
- print(`Loaded TDM default config`);
- }
- else if (autostartswitch == 3) //zombies (GOLD ONLY - SET sv_gold_only = 1; in dedicated_autoconfig.gm)
- {
- LoadRules("Rules/Zombie_Survival/gamemode.cfg");
- LoadMapCycle( "Rules/Zombie_Survival/ZombieMapCycle.cfg" );
- LoadMap( "" );
- print(`Loaded zombies default config`);
- } else if (autostartswitch == 4) //rtdm
- {
- LoadRules("Rules/RTDM/gamemode.cfg");
- LoadMapCycle( "Rules/RTDM/RTDMMapCycle.cfg" );
- LoadMap( "" );
- print(`Loaded RTDM default config`);
- } else if (autostartswitch == 5) //WAR
- {
- LoadRules("Rules/WAR/gamemode.cfg");
- LoadMapCycle( "Rules/WAR/WarMapCycle.cfg" );
- LoadMap( "" );
- print(`Loaded RTDM default config`);
- }
- else if (autostartswitch == 6) //FULL CTF
- {
- LoadRules("Rules/FullCTF/gamemode.cfg");
- LoadMapCycle( "Rules/FullCTF/mapcycle.cfg" );
- LoadMap( "" );
- print(`Loaded FULL CTF default config`);
- }else
- if (autostartswitch == 10) //test
- {
- LoadRules("Rules/TEST/gamemode.cfg");
- LoadMapCycle( "Scripts/mapcycle.cfg" );
- LoadMap( "" );
- print(`Loaded TEST default config`);
- }
- print(`Config finished loading from Scripts/Server/dedicated_autostart.gm`);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement