AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Snippets and Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=112)
-   -   [SNIPPET] Get Client's City (https://forums.alliedmods.net/showthread.php?t=79647)

eforie 06-07-2009 09:21

Re: [SNIPPET] Get Client's City
 
samurai could you make this ,working with amxx ?
i don`t know to convert from source to amxx

eforie 08-07-2009 07:32

Re: [SNIPPET] Get Client's City
 
samurai thank you for your help
you are a good man !

bl4nk 08-07-2009 15:16

Re: [SNIPPET] Get Client's City
 
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".

kokzok 12-19-2009 03:13

Re: [SNIPPET] Get Client's City
 
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))

noodleboy347 01-10-2010 17:53

Re: [SNIPPET] Get Client's City
 
Can someone post a compiled version? It's not working for me..

ltgenkd 01-12-2010 02:00

Re: [SNIPPET] Get Client's City
 
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 01-12-2010 04:26

Re: [SNIPPET] Get Client's City
 
3 Attachment(s)
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.

willy1234x1 04-30-2010 05:26

Re: [SNIPPET] Get Client's City
 
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.

urus 05-28-2010 09:52

Re: [SNIPPET] Get Client's City
 
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

maza51 07-08-2010 11:47

Re: [SNIPPET] Get Client's City
 
Does not work =(((


All times are GMT -4. The time now is 18:08.

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