Raised This Month: $ Target: $400
 0% 

[HELP] use geoip to display city


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
arvEL.
Senior Member
Join Date: Dec 2014
Location: Iraq
Old 12-19-2015 , 04:26   Re: [HELP] use geoip to display city
Reply With Quote #1

Quote:
Originally Posted by abdobiskra View Post
Code:
#include <amxmodx> #include <geoip> #include <geoipse> #include <colorchat> public plugin_init() { register_plugin("Join Country","1.0","<VeCo>") } public client_putinserver(id) { new szIP[32], szCountry[46], szCity[46], szName[32]; get_user_name(id, szName, 31); get_user_ip( id, szIP, 31, 1 ); geoip_country( szIP, szCountry ); geoip_city( szIP, szCity ); ColorChat(0,GREY,"^1Player^4 [%s]^1 from^3 [%s/%s]^1 has joined the game!", szName, szCountry, szCity) }


http://geolite.maxmind.com/download/...iteCity.dat.gz
sorry i tested it not work.
__________________
arvEL. is offline
Send a message via Skype™ to arvEL.
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 18:12.


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