nominations_extended: made nomlist work through rcon
This commit is contained in:
parent
6ca0d5dd70
commit
41977d77db
@ -566,14 +566,28 @@ public Action Command_NominateList(int client, int args)
|
|||||||
GetNominatedMapList(MapList);
|
GetNominatedMapList(MapList);
|
||||||
if(!GetArraySize(MapList))
|
if(!GetArraySize(MapList))
|
||||||
{
|
{
|
||||||
CPrintToChat(client, "[NE] No maps have been nominated.");
|
ReplyToCommand(client, "[NE] No maps have been nominated.");
|
||||||
delete MapList;
|
delete MapList;
|
||||||
return Plugin_Handled;
|
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);
|
Handle NominateListMenu = CreateMenu(Handler_NominateListMenu, MENU_ACTIONS_DEFAULT|MenuAction_DisplayItem);
|
||||||
|
|
||||||
static char map[PLATFORM_MAX_PATH];
|
|
||||||
for(int i = 0; i < GetArraySize(MapList); i++)
|
for(int i = 0; i < GetArraySize(MapList); i++)
|
||||||
{
|
{
|
||||||
GetArrayString(MapList, i, map, sizeof(map));
|
GetArrayString(MapList, i, map, sizeof(map));
|
||||||
|
Loading…
Reference in New Issue
Block a user