This commit is contained in:
neon 2018-09-23 18:36:59 +02:00
parent 92d33a1b0c
commit a66678bce3
3 changed files with 25 additions and 0 deletions

View File

@ -1526,6 +1526,10 @@ public int Handler_MapVoteMenu(Handle menu, MenuAction action, int param1, int p
{ {
Format(buffer, sizeof(buffer), "%T", "Custom", param1, map); Format(buffer, sizeof(buffer), "%T", "Custom", param1, map);
} }
else if(GetMapVIPRestriction(map))
{
Format(buffer, sizeof(buffer), "%s (%T)", map, "VIP Nomination", param1);
}
} }
if(buffer[0] != '\0') if(buffer[0] != '\0')

View File

@ -628,6 +628,22 @@ public int Handler_NominateListMenu(Menu menu, MenuAction action, int param1, in
{ {
delete menu; delete menu;
} }
case MenuAction_DisplayItem:
{
static char display[150];
static char map[PLATFORM_MAX_PATH];
GetMenuItem(menu, param2, map, sizeof(map));
bool VIPRestriction = GetMapVIPRestriction(map);
if(VIPRestriction)
{
Format(display, sizeof(display), "%s (%T)", map, "VIP Nomination", param1);
return RedrawMenuItem(display);
}
return 0;
}
} }
return 0; return 0;

View File

@ -106,6 +106,11 @@
"en" "*{1}" "en" "*{1}"
} }
"VIP Nomination"
{
"en" "VIP Nomination"
}
"Map Nominate VIP Error" "Map Nominate VIP Error"
{ {
"en" "Only VIPs can nominate this map." "en" "Only VIPs can nominate this map."