Raised This Month: $ Target: $400
 0% 

[ANY] GeoLocation (aka IPtoCity)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
Frenzzy
SourceMod Donor
Join Date: Jan 2007
Location: Russia
Plugin ID:
2670
Plugin Version:
1.0.0
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    4 
    Plugin Description:
    Shows geolocation of players.
    Old 11-20-2011 , 01:49   [ANY] GeoLocation (aka IPtoCity)
    Reply With Quote #1

    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
    Attached Files
    File Type: sp Get Plugin or Get Source (geolocation.sp - 1374 views - 15.1 KB)
    File Type: smx geolocation.smx (10.5 KB, 1598 views)
    __________________
    My Plugins: AllChat, GeoLocation

    Last edited by Frenzzy; 11-29-2011 at 04:44.
    Frenzzy is offline
    Send a message via ICQ to Frenzzy Send a message via MSN to Frenzzy Send a message via Skype™ to Frenzzy
     



    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 09:49.


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