Raised This Month: $51 Target: $400
 12% 

[SNIPPET] Get Client's City


Post New Thread Reply   
 
Thread Tools Display Modes
eforie
BANNED
Join Date: Dec 2008
Location: Romania
Old 06-07-2009 , 09:21   Re: [SNIPPET] Get Client's City
Reply With Quote #11

samurai could you make this ,working with amxx ?
i don`t know to convert from source to amxx
eforie is offline
Send a message via Yahoo to eforie Send a message via Skype™ to eforie
eforie
BANNED
Join Date: Dec 2008
Location: Romania
Old 08-07-2009 , 07:32   Re: [SNIPPET] Get Client's City
Reply With Quote #12

samurai thank you for your help
you are a good man !
eforie is offline
Send a message via Yahoo to eforie Send a message via Skype™ to eforie
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 08-07-2009 , 15:16   Re: [SNIPPET] Get Client's City
Reply With Quote #13

FYI, this has been updated since the first post. You can get the (current) newest version here:

http://geolite.maxmind.com/download/geoip/database/GeoLiteCity_CSV/GeoLiteCity_20090801.zip

It's updated on the first day of every month. You can get the new file here:

http://www.maxmind.com/app/geolitecity

Just look for the link that says "Download the latest GeoLite City CSV Format".
bl4nk is offline
kokzok
Junior Member
Join Date: Nov 2009
Old 12-19-2009 , 03:13   Re: [SNIPPET] Get Client's City
Reply With Quote #14

How to use it?
I have compiled a code, have put in <server>\addons\sourcemod\plugins\
Extract .csv files in <server>\addons\sourcemod\configs\geoip
But at connect on a server, in a chat the information on a city of the player is not deduced

p.s. Tested on L4D2 (sm 1.4.0 (Dec 16 2009), sm 1.3.0 (xx xx 2009)) and TF2 (sm 1.2.3 (Aug 28 2009))
kokzok is offline
Send a message via ICQ to kokzok
noodleboy347
AlliedModders Donor
Join Date: Mar 2009
Old 01-10-2010 , 17:53   Re: [SNIPPET] Get Client's City
Reply With Quote #15

Can someone post a compiled version? It's not working for me..
noodleboy347 is offline
ltgenkd
AlliedModders Donor
Join Date: Sep 2008
Old 01-12-2010 , 02:00   Re: [SNIPPET] Get Client's City
Reply With Quote #16

Same here, errors compiling on web compiler AND compiler in local sourcemod folder. Same errors for each compiler.

Code:
/home/groups/sourcemod/upload_tmp/phpDes4Ex.sp(0) : error 075: input line too long (after substitutions)
/home/groups/sourcemod/upload_tmp/phpDes4Ex.sp(1) : error 038: extra characters on line
/home/groups/sourcemod/upload_tmp/phpDes4Ex.sp(1) : error 075: input line too long (after substitutions)
/home/groups/sourcemod/upload_tmp/phpDes4Ex.sp(3) : error 010: invalid function or declaration
ltgenkd is offline
ltgenkd
AlliedModders Donor
Join Date: Sep 2008
Old 01-12-2010 , 04:26   Re: [SNIPPET] Get Client's City
Reply With Quote #17

I DL the most recent .CSV files from the link in bl4nks's post above.
Added them to configs/geoip folder.
I also copied and pasted SAMURAI's original code onto Notepad++ and recompiled and tested. It worked but lagged the server big time. It prints out an ip that is unfamiliar to me but, did a little more snooping around. If you go HERE you can try the demo and put your ip that prints to chat and its right on the money.
Tested plugin on L4d running windows. If we can get someone to right a script as exvel stated here it would be a lot better. Screen shot of print to chat and .smx and .sp attached.
Attached Thumbnails
Click image for larger version

Name:	l4d_city17_010000.jpg
Views:	266
Size:	90.6 KB
ID:	57174  
Attached Files
File Type: smx Get Client City.smx (3.5 KB, 148 views)
File Type: sp Get Plugin or Get Source (Get Client City.sp - 490 views - 3.3 KB)

Last edited by ltgenkd; 01-12-2010 at 13:53. Reason: More Info
ltgenkd is offline
willy1234x1
Senior Member
Join Date: Jun 2008
Old 04-30-2010 , 05:26   Re: [SNIPPET] Get Client's City
Reply With Quote #18

The only issue I see with this is that it could be a whole privacy thing, implementing it any plugin I'd suggest making a menu that asks the player if they'd allow it like most browsers with Geoip.
willy1234x1 is offline
urus
Senior Member
Join Date: Jan 2007
Old 05-28-2010 , 09:52   Re: [SNIPPET] Get Client's City
Reply With Quote #19

Maxmind geolitecity database is huge.
Correct method will be import csv files into MySQL and special fast query to take data.

http://atomboy.isa-geek.com/plone/Me...ile-into-mysql
__________________

Last edited by urus; 05-28-2010 at 09:55.
urus is offline
maza51
Senior Member
Join Date: Mar 2010
Old 07-08-2010 , 11:47   Re: [SNIPPET] Get Client's City
Reply With Quote #20

Does not work =(((
maza51 is offline
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 20:52.


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