21.02.2014, 11:02
pawn Код:
COMMAND:members(playerid)
{
if(PlayerInfo[playerid][faction] != -1)
{
for(new i; i<MAX_PLAYERS; i++)
{
if(PlayerInfo[i][faction] != PlayerInfo[playerid][faction]) continue; // Breaks ID if someone isn't in your faction
if(i == playerid) continue; // Breaks your own ID
new Strings[250];
format(Strings, sizeof(Strins), " - %s", PlayerName(i));
SendClientMessage(playerid, COLOR_WHITE, Strings);
return 1;
}
}
else return SendClientMessage(playerid, "{ff0000}[ERROR]{ffffff} You cannot use this command");
}