29.02.2012, 01:59
pawn Код:
new name[MAX_PLAYER_NAME], string[MAX_PLAYER_NAME * YOUR_SERVER_SLOTS]; // YOUR_SERVER_SLOTS more than 50 is very big
for(new i,g = GetMaxPlayers(); i < g; i++)
{
if(IsPlayerConnected(i))
{
GetPlayerName(i, name, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s%s\n",string,name);
}
}
ShowPlayerDialog(playerid, dialog_ID, DIALOG_STYLE_LIST, "Users OnLine", string, "Select", "Cancel");