Small RTV adjustment
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401719
This commit is contained in:
parent
d0bcaecdef
commit
7c95678241
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user