diff --git a/mapchooser_extended/scripting/nominations_extended.sp b/mapchooser_extended/scripting/nominations_extended.sp index 6f9c40e..4268409 100644 --- a/mapchooser_extended/scripting/nominations_extended.sp +++ b/mapchooser_extended/scripting/nominations_extended.sp @@ -566,14 +566,28 @@ public Action Command_NominateList(int client, int args) GetNominatedMapList(MapList); if(!GetArraySize(MapList)) { - CPrintToChat(client, "[NE] No maps have been nominated."); + ReplyToCommand(client, "[NE] No maps have been nominated."); delete MapList; return Plugin_Handled; } + static char map[PLATFORM_MAX_PATH]; + + if (client == 0) + { + char aBuf[2048]; + StrCat(aBuf, sizeof(aBuf), "[NE] Nominated Maps:"); + for(int i = 0; i < GetArraySize(MapList); i++) + { + StrCat(aBuf, sizeof(aBuf), "\n"); + GetArrayString(MapList, i, map, sizeof(map)); + StrCat(aBuf, sizeof(aBuf), map); + } + return Plugin_Handled; + } + Handle NominateListMenu = CreateMenu(Handler_NominateListMenu, MENU_ACTIONS_DEFAULT|MenuAction_DisplayItem); - static char map[PLATFORM_MAX_PATH]; for(int i = 0; i < GetArraySize(MapList); i++) { GetArrayString(MapList, i, map, sizeof(map));