/////////////////////////////////////////////// //*******************************************// // // // KeepTheCycle v.0.1 // // 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/use BOTS ?! (0=No) //If yes place the number (count) of bots u have here.. ge_bots 1 } //######################################### // 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_xdoblock gameend/config es_xsetinfo eg_endgame "v0.1" 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_time 0 es_xset live_helper 0 echo GameEnd has been unloaded !! es_xlog GameEnd deactivated } event es_map_start { es_xdelayed 60 es_xdoblock gameend/tracker } event player_disconnect { es_delayed 1 if (event_var(userid) != BOT ) { es_xset live_helper 0 getplayercount live_helper #all if (server_var(live_helper) <= 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 live_helper 0 getplayercount live_helper #all if (server_var(live_helper) <= 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