Fixed "nextmap" command being spammable (bug 3391, r=pred).
This commit is contained in:
parent
c8b3c82a12
commit
a04521b55a
@ -184,27 +184,13 @@ public Action:Command_Nextmap(client, args)
|
|||||||
|
|
||||||
GetNextMap(map, sizeof(map));
|
GetNextMap(map, sizeof(map));
|
||||||
|
|
||||||
if(GetConVarInt(g_Cvar_TriggerShow))
|
if (mapchooser && EndOfMapVoteEnabled() && !HasEndOfMapVoteFinished())
|
||||||
{
|
{
|
||||||
if (mapchooser && EndOfMapVoteEnabled() && !HasEndOfMapVoteFinished())
|
ReplyToCommand(client, "[SM] %t", "Pending Vote");
|
||||||
{
|
|
||||||
PrintToChatAll("[SM] %t", "Pending Vote");
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
PrintToChatAll("[SM] %t", "Next Map", map);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (mapchooser && EndOfMapVoteEnabled() && !HasEndOfMapVoteFinished())
|
ReplyToCommand(client, "[SM] %t", "Next Map", map);
|
||||||
{
|
|
||||||
ReplyToCommand(client, "[SM] %t", "Pending Vote");
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
ReplyToCommand(client, "[SM] %t", "Next Map", map);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return Plugin_Handled;
|
return Plugin_Handled;
|
||||||
|
Loading…
Reference in New Issue
Block a user