14.10.2013, 16:02
Use this:
PHP код:
forward SendFactionMessage(playerid,color,string[]);
public SendFactionMessage(playerid,color,string[]);
{
foreach(Player,i)
{
if(PlayerInfo[playerid][Faction] == PlayerInfo[i][Faction]))
{
SendClientMessage(i,color,string);
}
}
return 1;
}
//How to use:
SendFactionMessage(playerid,-1,"This is the faction chat!");