Big problem! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Big problem! (
/showthread.php?tid=565728)
Big problem! -
Seaf - 01.03.2015
when i check my ip i got my ip and my country and my city and when i check other players ip with command /checkip i see they have my ip and my country and my city so when i bann some one its ban whole server please help me
CMD:ipcheck(playerid, params[])
{
new playa;
if(PlayerInfo[playerid][pAdmin] >= 2)
{
if(!sscanf(params, "u", playa))
{
if(IsPlayerConnected(playa))
{
new ipcheckip[16], link[256];
GetPlayerIp(playa, ipcheckip, sizeof(ipcheckip));
format(ipchecking[playerid], 24, "%s", PlayerName(playa));
format(link, sizeof(link), "api.ipinfodb.com/v3/ip-city/?key=6e96000f89ab82ae854f4bd2a3189d84a4eed7c77df09 1972df7a146d8efcf1b&ip=%s", ipcheckip);
HTTP(playerid, HTTP_GET, link, "", "IPCheckResponse");
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "That player is not connected.");
}
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /ipcheck [playerid/PartOfName]");
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command !");
}
return 1;
Re: Big problem! -
ATGOggy - 01.03.2015
And IPCheckReponse callback?