library isGameOnline initializer INIT globals boolean IS_GAME_ONLINE = false //TRUE = Game is online, no cheats possible. //FALSE = Game is offline, cheats possible. //If your map have some sort of secrets, you can cover them in offline games endglobals private function INIT takes nothing returns nothing if GetExpiredTimer() != null then set IS_GAME_ONLINE = not IsNoDefeatCheat() call Cheat("StrengthAndHonor") call DestroyTimer(GetExpiredTimer()) return endif call Cheat("StrengthAndHonor") call TimerStart(CreateTimer(),1.0,false,function INIT) endfunction endlibrary