11.03.2013, 14:18
Let's say the variable which saves player's faction is PlayerFaction and you want to check for faction ID 8. You gotta create a command as you wish and use that format;
I hope you understood it.
pawn Код:
new count, string[128];
for(new id = 0; id < MAX_PLAYERS; id++)
{
if(PlayerFaction[id] == 8)
{
count++;
}
}
format(string, sizeof(string), "%d members are online from faction 8.", count);
SendClientMessage(playerid, -1, string);