[Include] GeoIP (ISP, Country, City)
#41

Ok works, but the city not accurate. (Debrecen instead of Godollo wrote...)
Reply
#42

Quote:

City: 79% on a city level for the US within a 25 mile radius.

I don't work on the databases, I just port them, there is no info for other countries accuracy.
Reply
#43

Quote:
Originally Posted by Richie
View Post
I get: Country, ISP, City = unknown.
When i check my IP @ maxmind site all info shows, why?
I guess you tried in on a local Server. In case you did, your IP was 127.0.0.1 and the database, of course, can't locate 127.0.0.1. Happened to me too in the first Place.

Little Question: In which Format can I store the Timezone? I've tried to save it as an Integer (gave out 0) and as a string (gave out nothing).
Reply
#44

Hello,

someone know what's exactly the code at onplayerconnect, to kick a specified country?

Greets
Reply
#45

Quote:
Originally Posted by dreamboxxl
View Post
Hello,

someone know what's exactly the code at onplayerconnect, to kick a specified country?

Greets
Code:
new IP[16], country[32];
GetPlayerIp(playerid, IP, sizeof(IP));
GetIPCountry(IP, country, 32);
if(!strcmp(country, "country")) Kick(playerid);
Reply
#46

I've updated the databases to be from Feb 2015. Download
Reply
#47

Thanks for updating the database
Reply
#48

Can you please add a GetDistanceBetweenPlayers and GetDistanceBetweenIP?
Reply
#49

Quote:
Originally Posted by Anuris
Посмотреть сообщение
Can you please add a GetDistanceBetweenPlayers and GetDistanceBetweenIP?
GetDistanceBetweenPlayers could easily get confused for the distance between 2 ingame characters. GetDistanceBetweenIP sounds better.

Checking the IP Range should work just as fine for what i'm assuming you're doing..
Reply
#50

Nice include bro
Reply
#51

Quote:
Originally Posted by Whitetiger
Посмотреть сообщение
I've updated the databases to be from Feb 2015. Download
Hello, you forgot to put "db_close(your_db);" one time and because of this mistake, owners' servers should be bugged. After using "db_open(your_db);" a lot of time, without using db_close, my server was bugged, and these problems appeared:

*SendRconCommand wasn't working.
*My server couldn't open anymore other files/databases from scriptfiles folder.

Actually you've used db_open for 6 times, and db_close for 5 times. Fix your include, others players may have problems because of this.


Sorry for bad english, GL.
Reply
#52

You can always find latest version of GeoLite Databases here.
Reply
#53

Dude i put the inc and dbs also but there is the sendsclientmessage and no onplayerconnect so how we will get the location and all?
Reply
#54

Example script's link is dead can anyone upload any example script? thanks
Reply
#55

I love it!
Reply
#56

How often do these databases change? Or not frequent enough that a web lookup would make more sense?
Reply
#57

How to translate the country the Russian language?
Reply
#58

If you need updated .db - check my signature. Updates will be each month with the release of database from MaxMind.

Sry for my bad eng
Reply
#59

Quote:
Originally Posted by Silicium
Посмотреть сообщение
Updates will be each month with the release of database from MaxMind.
Thank schoolboy!
Reply
#60

np m8
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)