SA-MP Forums Archive
[FilterScript] [FS] GetIpCountry - 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] [FS] GetIpCountry (/showthread.php?tid=131554)

Pages: 1 2


[FS] IpToCountry (Update11.03.19 added SQLite verzion ) - smeti - 03.03.2010

GeoIp Country filterscript. Joined message:


Example mysql verzion:
pawn Код:
public
    OnPlayerConnect(playerid)
{
    new
        string[144],
        IP[16];
    GetPlayerIp(playerid, IP, sizeof IP);
    GetPlayerName(playerid, string, 24);
    format(string, sizeof string, "*** %s has joined the server | Country: %s |", string, GetIpCountry_mysql(IP));
    SendClientMessageToAll(0xC00000FF, string);
    return 1;
}
Credits:
Time test SQLite verzion:
Код:
[19:13:35]   Loading filter script 'IpToCountry.db.amx'...
[19:13:35] °°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
[19:13:35] 	IpToCountry_db by Phento
[19:13:35] °°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
[19:13:35] Time test | random ip: 92.237.111.236 | COUNTRY: United Kingdom
[19:13:35] Time: 20ms
[19:13:35] Time test | random ip: 100.133.235.249 | COUNTRY: Unknown
[19:13:35] Time: 101ms
[19:13:35] Time test | random ip: 149.190.35.91 | COUNTRY: European Union
[19:13:35] Time: 30ms
[19:13:35] Time test | random ip: 42.13.26.61 | COUNTRY: Korea Republic of
[19:13:35] Time: 7ms
[19:13:35] Time test | random ip: 28.47.77.75 | COUNTRY: United States
[19:13:35] Time: 4ms
[19:13:35] Time test | random ip: 74.94.102.93 | COUNTRY: United States
[19:13:35] Time: 27ms
[19:13:35] Time test | random ip: 242.188.7.163 | COUNTRY: Reserved
[19:13:35] Time: 97ms
[19:13:35] Time test | random ip: 39.239.152.142 | COUNTRY: Unknown
[19:13:35] Time: 89ms
[19:13:35] Time test | random ip: 14.156.24.48 | COUNTRY: China
[19:13:35] Time: 4ms
[19:13:35] Time test | random ip: 115.20.122.117 | COUNTRY: Korea Republic of
[19:13:35] Time: 58ms
Download:


Mysql verzion:
http://www.solidfiles.com/d/a7ce/
SQLite verzion:
http://solidfiles.com/d/9069/


Re: [FS] GetIpCountry - Noredine - 03.03.2010

Screenie please


Re: [FS] GetIpCountry - MinZ|Spark - 04.03.2010

Nice one and thx


Re: [FS] GetIpCountry - Lejo - 04.03.2010

Nice release, I suppose. It'll be useful for certain things.


Re: [FS] GetIpCountry - Brian_Furios - 04.03.2010

thx very nice


Re: [FS] GetIpCountry - Fj0rtizFredde - 04.03.2010

Nice I was just looking for something like this


Re: [FS] GetIpCountry - Calgon - 04.03.2010

There are already plugins/includes for this, a trillion. But, nice work anyway.


Re: [FS] GetIpCountry - not - 04.03.2010

doesn't work always say: Country File Not Found!


Re: [FS] GetIpCountry - Fj0rtizFredde - 04.03.2010

Quote:
Originally Posted by not
doesn't work always say: Country File Not Found!
Make a folder in your scriptfiles called CountriesIPs and put in the IPLIST file in there


Re: [FS] GetIpCountry - speedruntrainer - 04.03.2010

w00t, that's nice, well done


Re: [FS] GetIpCountry - not - 05.03.2010

Quote:
Originally Posted by Fj0rtizFredde
Quote:
Originally Posted by not
doesn't work always say: Country File Not Found!
Make a folder in your scriptfiles called CountriesIPs and put in the IPLIST file in there
=P thx works perfectly!!! ^.^


Re: [FS] GetIpCountry - smeti - 05.03.2010

Quote:
Originally Posted by MinZ|Spark
Nice one and thx
Quote:
Originally Posted by Shakur_
Nice release, I suppose. It'll be useful for certain things.
Quote:
Originally Posted by Brian_Furios
thx very nice
Quote:
Originally Posted by Fj0rtizFredde
Nice I was just looking for something like this
Quote:
Originally Posted by CalgonX
There are already plugins/includes for this, a trillion. But, nice work anyway.
Quote:
Originally Posted by speedruntrainer
w00t, that's nice, well done
Quote:
Originally Posted by not
=P thx works perfectly!!! ^.^
Thank you very much.


Re: [FS] GetIpCountry - smeti - 15.10.2010

Updated the [FS] GetIpCountry
I added MySQL version. (approximately ten times faster thanks to sql data storage) (****** translate)


Re: [FS] GetIpCountry - Aleluja - 15.10.2010

NIce work


Re: [FS] GetIpCountry - royal_king - 15.10.2010

Nice 10/10


Respuesta: [FS] GetIpCountry - MrDeath537 - 16.10.2010

I prefer the plugin.

But nice work.


Re: [FS] GetIpCountry - [L3th4l] - 16.10.2010

Great work!


Re: [FS] GetIpCountry - X35B - 16.10.2010

Ill certainly be using this on my server?


Re: [FS] GetIpCountry - Davz*|*Criss - 12.03.2011

well done u did best i was searching for this.

Thnx


Re: [FS] GetIpCountry - smeti - 17.03.2011

Thanks.

Updated mysql verzion script.
Fixed cellmax limit problem and update countrydetected.sql database.