06.11.2014, 09:03
pawn Код:
CMD:checkwanted(playerid, params[])
{
new string[128],pname[MAX_PLAYER_NAME];
for(new i = 0; i < MAX_PLAYERS; i ++)
{
if(IsPlayerConnected(i))
{
if(playerAccount[i][WantedLevel] >= 1)
{
GetPlayerName(i, pname, sizeof(pname));
ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"Title",string,"Find", "Close");
format(string, sizeof (string), "[W:%d][ID:%d]%s",playerAccount[i][WantedLevel],i,pname);
return 1;
}
}
}
return 1;
}