30.10.2017, 09:07
This Message is Bugged i tryed many times to fix but cannot when a player login i see the message even im not on his gang faction
This IS the edited code
And This is the real one
This IS the edited code
PHP код:
for(new i = 0; i < GetPlayerPoolSize(); i++)
{
if(PlayerInfo[i][pFaction] == PlayerInfo[playerid][pFaction] && PlayerInfo[i][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)
{
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);
}
}
PHP код:
GetIPCountry(PlayerInfo[playerid][pIP], country, sizeof(country));
foreach(Player, i)
{
if(PlayerInfo[i][pFaction] == PlayerInfo[playerid][pFaction] && PlayerInfo[i][pFaction] != 0)
{
format(string, sizeof(string), "*** %s from your faction has logged in.", GetPlayerNameEx(playerid));
SendClientMessageEx(i, COLOR_JUNIORADMIN, string);
}
if(PlayerInfo[i][pGang] == PlayerInfo[playerid][pGang] && PlayerInfo[i][pGang] != 255)
{
format(string, sizeof(string), "*** %s from your gang has logged in.", GetPlayerNameEx(playerid));
SendClientMessageEx(i, COLOR_JUNIORADMIN, string);
}
if(ipmessages[i])
{
gettime(hour,minute,second);
format(string, sizeof(string), "[CONNECTIONS]{FFFF00} (%d:%d:%d) %s (IP:%s) from %s has logged in.", hour, minute, second, GetPlayerNameEx(playerid), PlayerInfo[playerid][pIP], country);
SendClientMessageEx(i, COLOR_JUNIORADMIN, string);
}
}