09.02.2018, 13:31
Do you mean this ? if yes, can you try it
PHP код:
new ip[16], country[32], isp[32], city[32];
if(pInfo[playerid][Level] == 1)
{
GetIPCountry(ip, country, sizeof country);
GetPlayerIp(playerid,ip,sizeof(ip));
format(str,sizeof(str), "{c3c3c3}(INFO) %s joined the game (ID: %d || Country: %s )",name, playerid, country);
SendMessageToAdmins(str);
}
else if(pInfo[playerid][Level] == 2)
{
GetPlayerIp(playerid, ip, 16);
GetIPCountry(ip, country, sizeof country);
GetIPISP(ip, isp, sizeof isp);
GetIPCity(ip, city, sizeof city);
GetPlayerIp(playerid,ip,sizeof(ip));
format(str,sizeof(str), "{c3c3c3}(INFO) %s joined the game (ID: %d || IP: %s || Country: %s || City: %s || ISP: %s)",name, playerid, ip, country, city, isp);
SendMessageToAdmins(str);
}
format(str,sizeof(str), "{c3c3c3}(INFO) %s (ID: %d) joined the game !",name, playerid);
SendClientMessageToAll(playerid, str);