29.06.2014, 04:13
pawn Код:
if(listitem == 1)
{
new pNameWanted[MAX_PLAYER_NAME],str[200],InsStr[500], PT = 0;
for(new want = 0; want <= MAX_PLAYERS; want++)
{
if(IsPlayerConnected(want) && GetPlayerWantedLevel(want) != 0)
{
GetPlayerName(want, pNameWanted, MAX_PLAYER_NAME);
format(str,sizeof(str),"[ID:%d] [Nome:%s] [Estrelas:%d]\n",want,pNameWanted,GetPlayerWantedLevel(want));
strcat(str,InsStr, sizeof(str));
PT++;
}
}
if(PT == 0)
ShowPlayerDialog(playerid,DIALOG_PROCURADOS,DIALOG_STYLE_MSGBOX,"Procurados:","Ninguйm online estб sendo procurado!\n","Ok","");
else ShowPlayerDialog(playerid,DIALOG_PROCURADOS,DIALOG_STYLE_MSGBOX,"Procurados:",InsStr,"Ok","");
return 1;
}