04.03.2017, 19:18
Код:
stock PlayerName(playerid) { new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, MAX_PLAYER_NAME); return name; } COMMAND:inevent(playerid, params[]) { for(new x=0; x< MAX_PLAYERS; x++) { if(Eventr[x]==1) { new name[MAX_PLAYER_NAME],string[50]; GetPlayerName(playerid, name, MAX_PLAYER_NAME); format(string, sizeof(string), "%s ", PlayerName(q)); ShowPlayerDialog(playerid,dialogid,DIALOG_STYLE_LIST,"Player in Event",string,"Okay","Cancel"); } } return 1; }