forked from UNLOZE/sm-plugins
eventually i gotta hit it right with a spot that works
This commit is contained in:
@@ -704,7 +704,6 @@ public Action Command_SetNextmap(int client, int args)
|
|||||||
g_SaveCDOnMapEnd = true;
|
g_SaveCDOnMapEnd = true;
|
||||||
else
|
else
|
||||||
g_SaveCDOnMapEnd = false;
|
g_SaveCDOnMapEnd = false;
|
||||||
|
|
||||||
return Plugin_Handled;
|
return Plugin_Handled;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1606,6 +1605,12 @@ public void Handler_VoteFinishedGeneric(char[] map,
|
|||||||
|
|
||||||
g_HasVoteStarted = false;
|
g_HasVoteStarted = false;
|
||||||
g_MapVoteCompleted = true;
|
g_MapVoteCompleted = true;
|
||||||
|
//checking on MapStart and MapEnd is not good enough. Players are not considered alive and on teams at those points in time.
|
||||||
|
//therefore instead applying the bool here after the mapvote completed.
|
||||||
|
if(InternalAreRestrictionsActive(false))
|
||||||
|
g_SaveCDOnMapEnd = true;
|
||||||
|
else
|
||||||
|
g_SaveCDOnMapEnd = false;
|
||||||
|
|
||||||
//PrintToChatAll("map: %s", map);
|
//PrintToChatAll("map: %s", map);
|
||||||
CPrintToChatAll("[MCE] %t", "Nextmap Voting Finished", map, RoundToFloor((map_votes /num_votes)*100.0));
|
CPrintToChatAll("[MCE] %t", "Nextmap Voting Finished", map, RoundToFloor((map_votes /num_votes)*100.0));
|
||||||
|
|||||||
Reference in New Issue
Block a user