11.05.2014, 15:52
Hi well me and a friend i have got this so far to get a list of the players name that are on the same team using gTeam, however it only gets the last player name that joined and not the full list here is the code , and thanks in advance!
Sugestions ?
Cheers.
Sugestions ?
Cheers.
Код:
new gTeam[MAX_PLAYERS]; #define TEAM_GROVE 0 CMD:team(playerid, params[]) { new name[MAX_PLAYER_NAME], string[1024]; for(new i; i<MAX_PLAYERS; i++) { if(IsPlayerConnected(playerid)) if(GetPlayerTeam(i)) if(gTeam[playerid] == TEAM_GROVE) { GetPlayerName(i, name, sizeof(name)); format(string, sizeof(string), "%s ", name); ShowPlayerDialog(playerid, 9999, DIALOG_STYLE_LIST, "Team online", string, "OK", ""); } } return 1; }