Wantedlist DIALOG_STYLE_INPUT - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Wantedlist DIALOG_STYLE_INPUT (
/showthread.php?tid=583561)
Wantedlist DIALOG_STYLE_INPUT -
SumX - 29.07.2015
Hello.I have this command:
PHP код:
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
Re: Wantedlist DIALOG_STYLE_INPUT -
Evocator - 29.07.2015
Add the IDs to an array, and in response, show the id from the "listitem" index.