NPC list TAB
#6

pawn Код:
new Nick[MAX_PLAYER_NAME],str[128] = "ID\tNick";
foreach(new ID : Bot)
{
    GetPlayerName(ID,Nick,MAX_PLAYER_NAME);
    format(str,sizeof(str),"%s{%06x}%d\t%s\n",str,(GetPlayerColor(ID) >>> 8),ID,Nick);
}

or

for(new ID; ID != MAX_PLAYERS; ID++)
    if(IsPlayerConnected(ID) && IsPlayerNPC(ID))
    {
        GetPlayerName(ID,Nick,MAX_PLAYER_NAME);
        format(str,sizeof(str),"%s{%06x}%d\t%s\n",str,(GetPlayerColor(ID) >>> 8),ID,Nick);
    }

ShowPlayerDialog(playerid,911,DIALOG_STYLE_LIST,"Server Bot List",str,"OK","");
Reply


Messages In This Thread
NPC list TAB - by toi - 25.02.2013, 17:09
Re: NPC list TAB - by Hoss - 25.02.2013, 17:28
Re: NPC list TAB - by toi - 25.02.2013, 17:42
Re: NPC list TAB - by Jefff - 25.02.2013, 17:51
Re: NPC list TAB - by toi - 25.02.2013, 17:58
Re: NPC list TAB - by Jefff - 25.02.2013, 18:23

Forum Jump:


Users browsing this thread: 2 Guest(s)