blub
This commit is contained in:
parent
92d33a1b0c
commit
a66678bce3
@ -1526,6 +1526,10 @@ public int Handler_MapVoteMenu(Handle menu, MenuAction action, int param1, int p
|
||||
{
|
||||
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')
|
||||
|
@ -628,6 +628,22 @@ public int Handler_NominateListMenu(Menu menu, MenuAction action, int param1, in
|
||||
{
|
||||
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;
|
||||
|
@ -106,6 +106,11 @@
|
||||
"en" "*{1}"
|
||||
}
|
||||
|
||||
"VIP Nomination"
|
||||
{
|
||||
"en" "VIP Nomination"
|
||||
}
|
||||
|
||||
"Map Nominate VIP Error"
|
||||
{
|
||||
"en" "Only VIPs can nominate this map."
|
||||
|
Loading…
Reference in New Issue
Block a user