Код:
stock ShowFriendListForPlayer(playerid)
{
new str[MAX_PLAYER_FRIENDS][MAX_PLAYER_NAME],string[128];
for(new f = 0; f < MAX_PLAYER_FRIENDS; f++)
{
if(strcmp(Freunde[playerid][f],"0",true) != 0)
{
if(GetIdByName(Freunde[playerid][f]) != -1)
{
format(str[f],MAX_PLAYER_NAME,"{0x33AA33AA}%s",Freunde[playerid][f]);
}
else
{
format(str[f],MAX_PLAYER_NAME,"{0xFF444499}%s",Freunde[playerid][f]);
}
}
format(string,sizeof(string),"",);
ShowPlayerDialog(playerid,DIALOG_FRIENDLIST,DIALOG_STYLE_MSGBOX,"Friendlist",string,"Ok","");
}
}