https://wiki.alliedmods.net/Format_C...mat_Specifiers
You add player name, two times. %N
Try %i
*edit
If you want make it more correctly, you should use player UserId. With this you can try search client index, is player still in game.
But try client index first.
Code:
for (int i = 1; i <= MaxClients; i++)
{
if (!IsClientInGame(i) || !IsFakeClient(i) || !IsPlayerAlive(i) || GetClientTeam(i) != 2)
continue;
char sID[32];
char sName[64];
GetClientName(i, sName, sizeof(sName));
Format(sID, sizeof(sID), "%N", i);
menu.AddItem(sID, sName);
}
menu.Display(client, MENU_TIME_FOREVER);
__________________