Skip to content

Commit 64101cc

Browse files
committed
scheduler: don't start second vote on empty server
1 parent 5c64269 commit 64101cc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cstrike/addons/amxmodx/scripting/map_manager_scheduler.sma

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#endif
1010

1111
#define PLUGIN "Map Manager: Scheduler"
12-
#define VERSION "0.1.9"
12+
#define VERSION "0.1.10"
1313
#define AUTHOR "Mistrick"
1414

1515
#pragma semicolon 1
@@ -446,6 +446,10 @@ public mapm_analysis_of_results(type, total_votes)
446446
return ALLOW_VOTE;
447447
}
448448

449+
if(get_players_num() == 0) {
450+
return ALLOW_VOTE;
451+
}
452+
449453
new max_items = mapm_get_count_maps_in_vote();
450454

451455
if(max_items <= 2) {

0 commit comments

Comments
 (0)