NPC list TAB
#1

How do I appear in my NPC list TAB? for example:

[SERVERBOT_COPPER] id 1
[SERVERBOT_ROBBERS] id 2
[SERVERBOT_SHIP] id 3
Tanks
Reply
#2

Impossible.
Reply
#3

and assign a specific id for each bot?
Reply
#4

Create this in gui
Reply
#5

how do I?
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)