28.12.2012, 05:07
Well, I have 2 factions and each player has its own faction and I want line 157 that can SendMessage to faction 1 and the Another Faction has its own Message. Hope you can understand what I mean, Sorry for bad English
pawn Код:
stock SendMessageToFaction(playerid, color, const string[]) //153
{ //154
for(new i = 0; i < MAX_PLAYERS; i++) //155
{ //156
if(PlayerInfo[i][Faction] >=1) //157
if(PlayerInfo[i][Rank] >=1) //158
if(i != playerid) //159
{ //160
SendClientMessage(i, color, string); //161
} //162
} //163
return 1; //164
} //165