/////////////////////////////////////////////// //*******************************************// // // // KeepTheCycle v.0.3 // // by kobo1d // // // //*******************************************// //*******************************************// // // // This Script is an perfect addition // // to the GunGame Plugin because it // // keeps the Mapcycle alive after // // a Map has run out of time // // and noone is playing. // // // // If u dont have GunGame installed // // you CAN still use this script! // // // // Requires Eventscripts 1.5 and MANI // // // //*******************************************// /////////////////////////////////////////////// block config { // // CONFIG PART // //Enable Script (0=Disabled) ge_gameend 1 //Do you have SourceTV running ?! (0=No) ge_tvactive 0 //Do you have CONSTANT Bots on your Server ? (0=None) //If yes, then set the number (count) of bots u have (1,2,3,4...) //IMPORTANT: If u have "bot_join_after_player 1" in your server.cfg, //then those bots DONT count !!!!!!!!!!!!!!!!!! ge_botcount 0 } //######################################### // Don't touch anything below this, // unless you know what you are doing ;) //######################################### block load { es_xset ge_gameend 0 es_xset ge_bots 0 es_xset ge_tvactive 0 es_xset ge_botcount 0 es_xset ge_time 0 es_xset ge_livehelper 0 es_xdoblock gameend/config es_xsetinfo eg_endgame "v0.3" es_xsetinfo eg_author "kobo1d" es_xmakepublic eg_endgame es_xmsg #multi #greenGameEnd #defaulthas been loaded !! es_xlog GameEnd activated } block unload { es_xset ge_gameend 0 es_xset ge_bots 0 es_xset ge_tvactive 0 es_xset ge_botcount 0 es_xset ge_time 0 es_xset ge_livehelper 0 echo GameEnd has been unloaded !! es_xlog GameEnd deactivated } event es_map_start { es_xdelayed 60 es_xdoblock gameend/tracker if (server_var(ge_tvactive) == 1) do { es_xmath ge_bots + 1 } if (server_var(ge_botcount) != 0) do { es_math ge_bots + server_var(ge_botcount) } else do { } } event player_disconnect { es_xset ge_livehelper 0 getplayercount ge_livehelper #all if (server_var(ge_livehelper) <= server_var(ge_bots)) do { es_xdelayed 60 es_xdoblock gameend/tracker } } block tracker { es_set ge_time server_var(mp_timelimit) es_xmath ge_time - 1 es_xmath ge_time * 60 if (server_var(ge_time) <= 0) do { es_xdoblock gameend/endgame } else do { es_delayed server_var(ge_time) es_xdoblock gameend/endgame } } block endgame { es_xset ge_livehelper 0 getplayercount ge_livehelper #all if (server_var(ge_livehelper) <= server_var(ge_bots)) do { if (server_var(ge_gameend) == 1) do { es_xmsg #multi #lightgreen[Warning] #defaultForcing Auto-Map-Change in #green2 seconds !! es_delayed 2 changelevel server_var(mani_nextmap) } } } // SCRIPT END