28.06.2011, 01:41
You could use strcmp or:
Not tested but should work.
pawn Код:
stock SendFactionMessage(playerid, color, text[])//Don't mind 'playerid'
{
foreach(Player, i)
{
if(PlayerInfo[playerid][pFaction] == PlayerInfo[i][pFaction])
{
SendClientMessage(i, color, text);
}
}
return 0;
}