03.09.2017, 10:51
Man, Told you, don't edit anything leave the code as i gave you
PHP код:
for(new i = 0; i < GetPlayerPoolSize(); i++)
{
if(PlayerInfo[i][pFaction] == PlayerInfo[playerid][pFaction] && PlayerInfo[i][pFaction] != 0)
{
new Name[MAX_PLAYER_NAME], string[100];
GetPlayerName(playerid, Name, sizeof(Name));
format(string, sizeof(string), "*** %s from your faction has logged in", Name);
SendClientMessage(i, COLOR_JUNIORADMIN, string);
}
if(PlayerInfo[i][pGang] == PlayerInfo[playerid][pGang] && PlayerInfo[i][pGang] != 0)
{
new Name[MAX_PLAYER_NAME], string[100];
GetPlayerName(playerid, Name, sizeof(Name));
format(string, sizeof(string), "*** %s from your gang has loggedin", Name);
SendClientMessage(i, COLOR_JUNIORADMIN, string);
}
}