29.12.2012, 06:27
i wanna to make command for players in faction ("Clan") but i shows me all players online :/
And how to make command for: /allmembers !? To show online and offline members in faction ..
Код:
CMD:clanovi(playerid, params[]) { new string[256];//It will add on to the string each time it finds a member, so you need a big-ish string. for(new i = 0; i < MAX_PLAYERS; i++) { if(PlayerInfo[playerid][Clan] == PlayerInfo[i][Clan]) { format(string, sizeof(string), "%s\n%s", string, PlayerName(i)); } } ShowPlayerDialog(playerid, 9999, DIALOG_STYLE_LIST, "Member(s) online", string, "OK", ""); return 1; }