From 7c95678241b467ce121b72048c701146b28a3e4a Mon Sep 17 00:00:00 2001 From: Michael McKoy <ferret99gt@gmail.com> Date: Fri, 23 Nov 2007 01:13:13 +0000 Subject: [PATCH] Small RTV adjustment --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401719 --- plugins/rockthevote.sp | 38 ++++++++++++++++++++------------------ 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/plugins/rockthevote.sp b/plugins/rockthevote.sp index 6378dc3e..cc4b5b50 100644 --- a/plugins/rockthevote.sp +++ b/plugins/rockthevote.sp @@ -89,21 +89,6 @@ public OnPluginStart() AutoExecConfig(true, "rtv"); } -public OnConfigsExecuted() -{ - if (g_RTVMapList != INVALID_HANDLE) - { - ClearArray(g_RTVMapList); - } - - if (LoadMaps(g_MapList, g_mapFileTime, g_Cvar_File)) - { - BuildMapMenu(); - g_CanRTV = true; - CreateTimer(30.0, Timer_DelayRTV); - } -} - public OnMapStart() { g_Voters = 0; @@ -119,6 +104,20 @@ public OnMapEnd() g_RTVAllowed = false; } +public OnConfigsExecuted() +{ + if (g_RTVMapList != INVALID_HANDLE) + { + ClearArray(g_RTVMapList); + } + + if (LoadMaps(g_MapList, g_mapFileTime, g_Cvar_File)) + { + BuildMapMenu(); + g_CanRTV = true; + CreateTimer(30.0, Timer_DelayRTV); + } +} public bool:OnClientConnect(client, String:rejectmsg[], maxlen) { @@ -218,8 +217,10 @@ public Action:Command_Addmap(client, args) public Action:Command_Say(client, args) { - if (!g_CanRTV || !client) - return Plugin_Continue; + if (!g_CanRTV || !client) + { + return Plugin_Continue; + } decl String:text[192]; if (!GetCmdArgString(text, sizeof(text))) @@ -438,7 +439,8 @@ public Handler_MapMapVoteMenu(Handle:menu, MenuAction:action, param1, param2) { if (param1 == VoteCancel_NoVotes) { - PrintToChatAll("[SM] %t", "No Votes"); + PrintToChatAll("[SM] %t", "No Votes"); + g_RTVEnded = true; } }