SA-MP Forums Archive
[FilterScript] GeoIP - Get Players Country [HTTP] (No Plugins/No DB) - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] GeoIP - Get Players Country [HTTP] (No Plugins/No DB) (/showthread.php?tid=605326)



GeoIP - Get Players Country [HTTP] (No Plugins/No DB) - DragonZafiro - 17.04.2016

Description

Show the player country when player connect (you can edit it), using the HTTP function of a_http.

Features

• No Plugins required.
• No DataBases required.

Bugs

Tell me if you find one.

Pictures

______________________________

______________________________
Installation

• Register in ipinfodb.com to get your API code,
you can find it here:

copy it and paste it in
PHP код:
#define APIKEY "yourApiKey" 
• Sometimes the HTTP can't get response, if you want the script to get always a response, uncomment this line:

PHP код:
// #define ALWAYS_RESPONSE 
but if you do that, might take a while to get the player's country.

Download

Pastebin: link

++Rep me if you like my works;


Re: GeoIP - Get Players Country [HTTP] (No Plugins/No DB) - kusvendi - 23.01.2017

Nice Workk !!


Re: GeoIP - Get Players Country [HTTP] (No Plugins/No DB) - Castiel17 - 20.07.2017

Nice bro this is work for me but i want when someone type command [C] show country
can you help me !!!


Re: GeoIP - Get Players Country [HTTP] (No Plugins/No DB) - Barnwell - 20.07.2017

Nice FS! +REP


Re: GeoIP - Get Players Country [HTTP] (No Plugins/No DB) - iLearner - 20.07.2017

Decided to stick with ip-api.com, its great and fast. No registrations + ability to get a lot more info. (Not only country)

Gj anyway.


to me, didn't notice date.


Re: GeoIP - Get Players Country [HTTP] (No Plugins/No DB) - XtremeR - 24.07.2017

Useful, +rep.


Re: GeoIP - Get Players Country [HTTP] (No Plugins/No DB) - cuber - 24.07.2017

Good job.


Re: GeoIP - Get Players Country [HTTP] (No Plugins/No DB) - PollyS - 30.10.2017

You can also try our https://ipinfo.io/
API is free for up to 1,000 req/day