[Include] IP Lookup Script
#10

It's not a hard code to use, pretty much like GetPlayerName.

pawn Code:
new pCountry[50];

GetPlayerCountry(playerid, pCountry, sizeof pCountry);
printf("The player whose ID is %d is from %s", playerid, pCountry);
It will print the player country when executed. Everything works pretty fine. As the API will search directly using your IP and not one given from SAMP, it will not work on local computer as it sends local IP. As far as the API is online and the IP sent is valid, everything will be working pretty fine. Nice work on this include, repped. Keep it up.

Edit: OnLookupComplete will not be called if IP is invalid or local.
Reply


Messages In This Thread
IP Lookup Script - by Banana_Ghost - 17.05.2016, 10:19
Re: IP Lookup Script - by JustMe.77 - 17.05.2016, 18:28
Re: IP Lookup Script - by Banana_Ghost - 18.05.2016, 08:50
Re: IP Lookup Script - by Miller007 - 18.05.2016, 08:55
Re: IP Lookup Script - by Zorono - 18.05.2016, 10:10
Re: IP Lookup Script - by justice96 - 18.05.2016, 10:15
Re: IP Lookup Script - by Banana_Ghost - 18.05.2016, 12:34
Respuesta: IP Lookup Script - by dannypanda05 - 18.05.2016, 13:09
Re: IP Lookup Script - by HydraHumza - 18.05.2016, 13:40
Re: IP Lookup Script - by Private200 - 18.05.2016, 16:00
Re: IP Lookup Script - by N0FeaR - 18.05.2016, 19:27
Re: IP Lookup Script - by muhsah007 - 02.06.2016, 20:49
Re: IP Lookup Script - by zSuYaNw - 02.06.2016, 21:04
Re: IP Lookup Script - by vannesenn - 02.06.2016, 22:19
Re: IP Lookup Script - by PT - 04.06.2016, 12:05
Re: IP Lookup Script - by muhsah007 - 04.06.2016, 18:13
Re: IP Lookup Script - by Banana_Ghost - 05.06.2016, 09:51
Re: IP Lookup Script - by Banana_Ghost - 05.06.2016, 09:55
Re: IP Lookup Script - by iLearner - 27.11.2016, 20:32
Re: IP Lookup Script - by GoldenMan - 29.08.2017, 13:25

Forum Jump:


Users browsing this thread: 1 Guest(s)