nominations_extended: fix glitch/exploit

This commit is contained in:
neon 2018-12-06 22:23:16 +01:00
parent 92709d1cc1
commit 7620a0f01e

View File

@ -749,6 +749,12 @@ public int Handler_MapSelectMenu(Menu menu, MenuAction action, int param1, int p
GetClientName(param1, name, MAX_NAME_LENGTH);
if(GetMapTimeRestriction(map) || GetMapPlayerRestriction(map) || GetMapGroupRestriction(map, param1) >= 0 || GetMapVIPRestriction(map, param1))
{
PrintToChat(param1, "[NE] You can't nominate this map right now.");
return 0;
}
NominateResult result = NominateMap(map, false, param1);
/* Don't need to check for InvalidMap because the menu did that already */