Fixed "nextmap" command being spammable (bug 3391, r=pred).

This commit is contained in:
David Anderson 2008-11-05 21:02:07 -08:00
parent c8b3c82a12
commit a04521b55a

View File

@ -184,27 +184,13 @@ public Action:Command_Nextmap(client, args)
GetNextMap(map, sizeof(map));
if(GetConVarInt(g_Cvar_TriggerShow))
if (mapchooser && EndOfMapVoteEnabled() && !HasEndOfMapVoteFinished())
{
if (mapchooser && EndOfMapVoteEnabled() && !HasEndOfMapVoteFinished())
{
PrintToChatAll("[SM] %t", "Pending Vote");
}
else
{
PrintToChatAll("[SM] %t", "Next Map", map);
}
ReplyToCommand(client, "[SM] %t", "Pending Vote");
}
else
{
if (mapchooser && EndOfMapVoteEnabled() && !HasEndOfMapVoteFinished())
{
ReplyToCommand(client, "[SM] %t", "Pending Vote");
}
else
{
ReplyToCommand(client, "[SM] %t", "Next Map", map);
}
ReplyToCommand(client, "[SM] %t", "Next Map", map);
}
return Plugin_Handled;