09.04.2017, 19:25
PHP код:
public OnPlayerConnect(playerid)
{
new string[128];
if(PlayerInfo[playerid][pFaction] != 0)
{
format(string, sizeof(string), "*** %s from your faction has logged in.", GetPlayerNameEx(playerid));
for(new i;i<MAX_PLAYER;i++)
{
if(i == playerid) continue;
if(PlayerInfo[playerid][pFaction] == PlayerInfo[i][pFaction])
{
SendClientMessage(i,-1,string);
}
}
}
return 1;
}