Faction Chat help for dynamic factions
#3

pawn Код:
forward SendMessageToOfficialFaction(playerid, color,const string[]);
public SendMessageToOfficialFaction(playerid, color,const string[])
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i) == 1)
        if(PlayerInfo[i][pFaction] == PlayerInfo[playerid][pFaction])
        SendClientMessage(i, color, string);
    }
    return 1;
}
Try that
Reply


Messages In This Thread
Faction Chat help for dynamic factions - by jueix - 11.02.2014, 09:44
Re: Faction Chat help for dynamic factions - by $Marco$ - 11.02.2014, 09:49
Re: Faction Chat help for dynamic factions - by Flake. - 11.02.2014, 09:49
Re: Faction Chat help for dynamic factions - by DaniceMcHarley - 11.02.2014, 09:54

Forum Jump:


Users browsing this thread: 1 Guest(s)