Hier ein simples Beispiel:
C
new string[512];
for(new i=GetPlayerPoolSize(); i!=-1; i--)
{
if(!IsPlayerConnected(i) || IsPlayerNPC(i) || pFraktion[i] != 3) continue;
format(string,sizeof(string),"%s%s (ID: %d)\n",string,PlayerName(i),i);
}
ShowPlayerDialog(playerid,1337,DIALOG_STYLE_MSGBOX,"Spieler Fraktion 3",string,"Bestätigen","");