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");
|
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()
|
public OnMapStart()
|
||||||
{
|
{
|
||||||
g_Voters = 0;
|
g_Voters = 0;
|
||||||
@ -119,6 +104,20 @@ public OnMapEnd()
|
|||||||
g_RTVAllowed = false;
|
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)
|
public bool:OnClientConnect(client, String:rejectmsg[], maxlen)
|
||||||
{
|
{
|
||||||
@ -218,8 +217,10 @@ public Action:Command_Addmap(client, args)
|
|||||||
|
|
||||||
public Action:Command_Say(client, args)
|
public Action:Command_Say(client, args)
|
||||||
{
|
{
|
||||||
if (!g_CanRTV || !client)
|
if (!g_CanRTV || !client)
|
||||||
return Plugin_Continue;
|
{
|
||||||
|
return Plugin_Continue;
|
||||||
|
}
|
||||||
|
|
||||||
decl String:text[192];
|
decl String:text[192];
|
||||||
if (!GetCmdArgString(text, sizeof(text)))
|
if (!GetCmdArgString(text, sizeof(text)))
|
||||||
@ -438,7 +439,8 @@ public Handler_MapMapVoteMenu(Handle:menu, MenuAction:action, param1, param2)
|
|||||||
{
|
{
|
||||||
if (param1 == VoteCancel_NoVotes)
|
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