diff --git a/plugins/rockthevote.sp b/plugins/rockthevote.sp index 1e0d9ee0..25f3a8a8 100644 --- a/plugins/rockthevote.sp +++ b/plugins/rockthevote.sp @@ -88,7 +88,7 @@ public OnPluginStart() AutoExecConfig(true, "rtv"); } - + public OnConfigsExecuted() { if (g_RTVMapList != INVALID_HANDLE) @@ -96,12 +96,6 @@ public OnConfigsExecuted() ClearArray(g_RTVMapList); } - g_Voters = 0; - g_Votes = 0; - g_VotesNeeded = 0; - g_RTVStarted = false; - g_RTVEnded = false; - if (LoadMaps(g_MapList, g_mapFileTime, g_Cvar_File)) { BuildMapMenu(); @@ -109,6 +103,15 @@ public OnConfigsExecuted() CreateTimer(30.0, Timer_DelayRTV); } } + +public OnMapStart() +{ + g_Voters = 0; + g_Votes = 0; + g_VotesNeeded = 0; + g_RTVStarted = false; + g_RTVEnded = false; +} public OnMapEnd() {