Not sure if this is gonna work, but try it.
PHP код:
for(new i = 0; i < GetPlayerPoolSize(); i++)
{
if(PlayerInfo[i][pFaction] == PlayerInfo[playerid][pFaction] && PlayerInfo[i][pFaction] != 0 && PlayerInfo[playerid][pFaction] != 0)
{
new string[100];
format(string, sizeof(string), "*** %s from your faction has logged in", GetPlayerNameEx(playerid));
printf("%s from your faction has logged in",GetPlayerNameEx(playerid));
SendClientMessage(i, COLOR_JUNIORADMIN, string);
}
if(PlayerInfo[i][pGang] == PlayerInfo[playerid][pGang] && PlayerInfo[i][pGang] != 0 && PlayerInfo[playerid][pGang] != 0)
{
new string[100];
format(string, sizeof(string), "*** %s from your gang has loggedin", GetPlayerNameEx(playerid));
printf("%s from your gang has logged in",GetPlayerNameEx(playerid));
SendClientMessage(i, COLOR_JUNIORADMIN, string);
}
}