diff --git a/mapchooser_extended/scripting/mapchooser_extended.sp b/mapchooser_extended/scripting/mapchooser_extended.sp index 2d7ab0f7..f52eea88 100644 --- a/mapchooser_extended/scripting/mapchooser_extended.sp +++ b/mapchooser_extended/scripting/mapchooser_extended.sp @@ -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') diff --git a/mapchooser_extended/scripting/nominations_extended.sp b/mapchooser_extended/scripting/nominations_extended.sp index bf365b96..0d5547fd 100644 --- a/mapchooser_extended/scripting/nominations_extended.sp +++ b/mapchooser_extended/scripting/nominations_extended.sp @@ -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; diff --git a/mapchooser_extended/translations/mapchooser_extended.phrases.txt b/mapchooser_extended/translations/mapchooser_extended.phrases.txt index c8e4e6e0..07ad85a4 100644 --- a/mapchooser_extended/translations/mapchooser_extended.phrases.txt +++ b/mapchooser_extended/translations/mapchooser_extended.phrases.txt @@ -106,6 +106,11 @@ "en" "*{1}" } + "VIP Nomination" + { + "en" "VIP Nomination" + } + "Map Nominate VIP Error" { "en" "Only VIPs can nominate this map."