GeoLocation
by GreyHound
⤓ Download · 20.0 MBBy: GreyHound Wanna know where your clients come from? More information to identify smurfs or to keep bans solid? Here you go! Since i probably won't improve it anymore i thought i'd just roll it out. I think this could be cool to have. It doesn't do more then filling the variables as shown in the example. Feed the IP, get the Info. Read the readme, there are 2 files required that can be downloaded at the interwebs that deliver all the geolocation data used by this plugin. Those files are free to use and come in new versions every month. Also, it's a Plugin for Nofix plugin loader system ofcourse. Here's a shot of what could be done with it. More information can be found here: http://www.annihilation.info/forum/viewtopic.php?f=2&t=8366
- Filename
GeoIP.Loader.included.rar- Size
- 20.0 MB (listed 19.96MB)
- Type
- RAR
- Developer
- GreyHound
- Last update
- May 09, 2011 - 15:16
- Format
- RAR archive data, v4, os: Win32
Readme — GeoIP.plus.Loader/ReadMe.txt (from the archive itself)
GreyHound 2010
This is a Server Plugin for Tribes 1, original version, no 1.40 stuff
Those 2 files should be present:
<Tribes Dir>/Plugins/GeoIp/GeoLiteCity.dat
<Tribes Dir>/Plugins/GeoIp/GeoIPASNum.dat
You can get those 2 files here:
http://www.maxmind.com/app/geolitecity
http://geolite.maxmind.com/download/geoip/database/asnum/
Simple example:
function GeoIP::OnConnect(%clientId)
{
%name = Client::GetName(%clientId);
%ip = Client::getTransportAddress(%clientId);
%ip = MySql::ParseIP(%ip);
GeoIp::Lookup(%ip);
GeoIP::print();
}
function GeoIP::print()
{
echo($GeoIP[country]);
echo($GeoIP[region]);
echo($GeoIP[regionname]);
echo($GeoIP[city]);
echo($GeoIP[latitude]);
echo($GeoIP[longitude]);
echo($GeoIP[metrocode]);
echo($GeoIP[areacode]);
echo($GeoIP[timezone]);
echo($GeoIP[1]);
echo($GeoIP[2]);
echo($GeoIP[ASN]);
}
[/code]Readme — GeoIP.plus.Loader/Plugins/GeoIP/readme.txt (from the archive itself)
Put 1) GeoLiteCity.dat ( http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz ) 2) GeoIPASNum.dat ( http://geolite.maxmind.com/download/geoip/database/asnum/ ) in this folder. You will get an error if the files are not found.
Contents — 12 files (inside the archive)
- GeoIP.plus.Loader/mem.dll
- GeoIP.plus.Loader/Plugins/GeoIP/readme.txt
- GeoIP.plus.Loader/Plugins/GeoIP.dll
- GeoIP.plus.Loader/Plugins/geoip.jpg
- GeoIP.plus.Loader/Plugins/Scripts/PluginLoader.cs
- GeoIP.plus.Loader/ReadMe.txt
- GeoIP.plus.Loader/Plugins/GeoIP
- GeoIP.plus.Loader/Plugins/Scripts
- GeoIP.plus.Loader/Plugins
- GeoIP.plus.Loader
- GeoIP.plus.Loader/Plugins/GeoIP/GeoIPASNum.dat
- GeoIP.plus.Loader/Plugins/GeoIP/GeoLiteCity.dat
Source: The Exiled — Tribes Repository
Original page: https://library.theexiled.pwnageservers.com/file.php?id=2857
Archived source HTML: _source/file/2857.html
Original page: https://library.theexiled.pwnageservers.com/file.php?id=2857
Archived source HTML: _source/file/2857.html