PDA

View Full Version : Wantedlist DIALOG_STYLE_INPUT


SumX
29/07/2015, 10:34 AM
Hello.I have this command:

CMD:wantedlist(playerid, params[])
{
new ctext[1000];
new stringc[512];

if( GetPlayerTeam(playerid) == 6 || GetPVarInt( playerid, "AdminLevel" ))
{
foreach(Player, i)
{
if(IsPlayerConnected(i))
{
if(GetPVarInt(i,"Wanted") < 7 && GetPVarInt(i,"Wanted") != 0)
{
format(stringc, 512, "{FFFFFF}%s {0000A0}[ID: {FFFFFF}%d{0000A0}] [Level: {FFFFFF}%d{0000A0}]", pName(i), i, GetPVarInt(i,"Wanted"));
}
strcat(stringc, "\n");
strcat(ctext, stringc);
}
}
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

Evocator
29/07/2015, 10:48 AM
Add the IDs to an array, and in response, show the id from the "listitem" index.