GeoLocation
As well as
IPtoSity (
EventScripts), this plugin displays information about the geolocation of players based on their IP-addresses. Geographic data is retrieved from the site
whatismyipaddress.com in real time, when the player connects to the server. Plugin displays the following information about clients: Player name, Steam ID, IP-address, Country, State/Region, City, ISP (Internet Service Provider).
Features:- Receiving geographical information in real time.
- Geolocation written to player console without cluttering the chat.
- When player is connected, all clients can see his geolocation.
- Ability to not display the IP-addresses for non-admin clients.
- There is a command to see the geolocation of any player.
- LAN players will have the same geolocation as a server.
Screenshots:
Requirements:- Internet connection.
- SourceMod v1.3 or above.
- Socket Extension v3.0 or above.
- (optional) SteamTools Extension if your server behind a NAT and you want to correctly identify geolocation of LAN players.
- (optional) Updater if you want to receive plugin updates automatically.
Installation:- Add geolocation.smx to your plugins directory: ../addons/sourcemod/plugins/geolocation.smx
Convars:- sm_geolocation_ips <0|1> - Show IP-addresses for non-admin clients. *Default: 0
- sm_geolocation_cmd <0|1> - Only admins can use geoinfo command. *Default: 0
Commands:- sm_geoinfo <#userid|name> - Displays geolocation of player.
Changelog:- 1.0.0 (November 20th 2011) - Initial release.
Todo:- Cvar that restricts the console output for admins only.
- Make this plugin to be library and provide some natives like getting client city.
- Boradcast geolocation in chat.
Tags: geolocation, iptocity, iptosity, geoip, geodata, geo, location, country, state, region, city, isp, internet service provider, ip address, connect announce