[FilterScript] [FS] GetIpCountry
#1

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/
Reply
#2

Screenie please
Reply
#3

Nice one and thx
Reply
#4

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

thx very nice
Reply
#6

Nice I was just looking for something like this
Reply
#7

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

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

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
Reply
#10

w00t, that's nice, well done
Reply
#11

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!!! ^.^
Reply
#12

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.
Reply
#13

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

NIce work
Reply
#15

Nice 10/10
Reply
#16

I prefer the plugin.

But nice work.
Reply
#17

Great work!
Reply
#18

Ill certainly be using this on my server?
Reply
#19

well done u did best i was searching for this.

Thnx
Reply
#20

Thanks.

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


Forum Jump:


Users browsing this thread: 1 Guest(s)