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);
}
}
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);
}
}
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);
}
}
Not sure if this is gonna work, but try it.
PHP код:
|
Not sure if this is gonna work, but try it.
PHP код:
|
for(new i = 0; i < GetPlayerPoolSize(); i++)
foreach(new i : Player)