Online list
#6

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");
Reply


Messages In This Thread
Online list - by ArmyOps - 28.02.2012, 23:03
Re: Online list - by Nuke547 - 28.02.2012, 23:09
Re: Online list - by ArmyOps - 29.02.2012, 01:30
Re: Online list - by coole210 - 29.02.2012, 01:53
Re: Online list - by suhrab_mujeeb - 29.02.2012, 01:56
Re: Online list - by Jefff - 29.02.2012, 01:59

Forum Jump:


Users browsing this thread: 4 Guest(s)