Wantedlist DIALOG_STYLE_INPUT
#1

Hello.I have this command:

PHP код:
CMD:wantedlist(playeridparams[])
{
    new 
ctext[1000];
    new 
stringc[512];
    
    if( 
GetPlayerTeam(playerid) == ||  GetPVarIntplayerid"AdminLevel" ))
    {
        foreach(
Playeri)
        {
            if(
IsPlayerConnected(i))
            {
                if(
GetPVarInt(i,"Wanted") < && GetPVarInt(i,"Wanted") != 0)
                {
                        
format(stringc512"{FFFFFF}%s {0000A0}[ID: {FFFFFF}%d{0000A0}] [Level: {FFFFFF}%d{0000A0}]"pName(i), iGetPVarInt(i,"Wanted"));
                }
                
strcat(stringc"\n");
                
strcat(ctextstringc);
            }
        }
        
ShowPlayerDialog(playerid,COLOR_COPS DIALOG_STYLE_MSGBOX,"Wantedlist"ctext"OK","");
    }
    return 
1;

I want to make it using a DIALOG_STYLE_INPUT and when someone has wanted, to show his name and when i click on him to give more detalis about him.
How can I make this? Thank you
Reply
#2

Add the IDs to an array, and in response, show the id from the "listitem" index.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)