You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If server gets empty or players join after plugin auto extends map because of no votes based on the settings, they will play a 45 or 60 instead of the regular 30 minute map for example.
Adding the following in map_manager_scheduler should do the trick(tested and working):
In plugin_init(), uncomment already existing code: register_event("TextMsg", "event_restart", "a", "2=#Game_Commencing", "2=#Game_will_restart_in");
Add in the triggered forward:
public event_restart()
{
/* if(get_num(RESTORE_MAP_LIMITS)) {
restore_limits();
}
*/
if (get_float(TIMELIMIT) * 60 - get_timeleft() <= 1)
plugin_end();
}
...where plugin_end() contains restoring original values code:
If server gets empty or players join after plugin auto extends map because of no votes based on the settings, they will play a 45 or 60 instead of the regular 30 minute map for example.
Adding the following in map_manager_scheduler should do the trick(tested and working):
In plugin_init(), uncomment already existing code:
register_event("TextMsg", "event_restart", "a", "2=#Game_Commencing", "2=#Game_will_restart_in");
Add in the triggered forward:
...where plugin_end() contains restoring original values code:
The text was updated successfully, but these errors were encountered: