Raised This Month: $ Target: $400
 0% 

[Req] GeoIP2


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
plazma
Senior Member
Join Date: Oct 2013
Old 10-18-2014 , 12:52   [Req] GeoIP2
Reply With Quote #1

Quote:
Originally Posted by souvikdas95 View Post
Please add ISP as well. You might want to shift to GeoIP2 Databases and API.
Can explain anynone here how it work or source because not work in old versions geoip...
__________________
Free Palestine ♥
plazma is offline
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 10-18-2014 , 21:46   Re: [Req] GeoIP2
Reply With Quote #2

GeoIP2 is now available at http://amxmodx.org/snapshots.php.
Create a file like JoinIP.sma inside 'scripting' folder and fill it up with the code below.

PHP Code:
#include amxmodx
#include geoip

public client_putinserver(i)
{
  static 
a[64], b[64], c[64], w[64], x;

  
get_user_name(iw63);
  
get_user_ip(ia631);
  
x=geoip_country(ab63); if (!x"N/A";
  
x=geoip_city(ac63); if (!x"N/A";

  
client_print(0print_chat"%s connected from %s (city), %s (country)"wcb);

http://dev.maxmind.com/geoip/geoip2/geolite2/

Download GeoLite City, extract it and place it inside 'data' directory.
All done.
__________________
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
plazma
Senior Member
Join Date: Oct 2013
Old 10-19-2014 , 07:48   Re: [Req] GeoIP2
Reply With Quote #3

Code:
[AMXX] Plugin "CONNECT.amxx" failed to load: Plugin uses an unknown function (name "geoip_city") - check your modules.ini.
I put new geoip dll
I compile with new geoip
__________________
Free Palestine ♥
plazma is offline
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 10-19-2014 , 12:02   Re: [Req] GeoIP2
Reply With Quote #4

Quote:
Originally Posted by plazma View Post
Code:
[AMXX] Plugin "CONNECT.amxx" failed to load: Plugin uses an unknown function (name "geoip_city") - check your modules.ini.
I put new geoip dll
I compile with new geoip
If the plugin compiles well, it means geoip.inc file is up to date (scripting).
Ensure the game server is running GeoIP module properly (the newer version).
Close it, upload the GeoIP module then start it again.
__________________
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
plazma
Senior Member
Join Date: Oct 2013
Old 10-19-2014 , 13:12   Re: [Req] GeoIP2
Reply With Quote #5

Quote:
Originally Posted by claudiuhks View Post
If the plugin compiles well, it means geoip.inc file is up to date (scripting).
Ensure the game server is running GeoIP module properly (the newer version).
Close it, upload the GeoIP module then start it again.
I compiled it fine with new geoip.inc up to date...

I have uploads new modules geoip_amxx.dll modules.ini geoip upload amxmodx_mm.dll and I download GeoLite2-City.mmdb rename to GeoLite2City.dat <- (but I don't know is good this name for GeoIP2) ?

Code:
amxmodx-1.8.3-dev-git4453-base-windows\addons\amxmodx\data
rename to GeoLite2-Country.dat <- (don't know is good for new GeoIP2) tell me or post one simple addon to helpful thanks...

sory my bad eng...
__________________
Free Palestine ♥

Last edited by plazma; 10-19-2014 at 13:14.
plazma is offline
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 10-19-2014 , 13:57   Re: [Req] GeoIP2
Reply With Quote #6

You don't have to rename anything.
__________________
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
plazma
Senior Member
Join Date: Oct 2013
Old 10-19-2014 , 14:31   Re: [Req] GeoIP2
Reply With Quote #7

Quote:
Originally Posted by claudiuhks View Post
You don't have to rename anything.
Ah.. now is good but no detected anything??

__________________
Free Palestine ♥
plazma is offline
Old 10-21-2014, 13:49
plazma
This message has been deleted by Arkshine. Reason: Don't bump until 15 days have passed since the previous message
Old 10-22-2014, 15:55
plazma
This message has been deleted by Arkshine. Reason: Don't bump until 15 days have passed since your last message
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:09.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode