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

[ANY] GeoLocation (aka IPtoCity)


Post New Thread Reply   
 
Thread Tools Display Modes
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:
    1 
    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 - 1353 views - 15.1 KB)
    File Type: smx geolocation.smx (10.5 KB, 1574 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
    JoBarfCreepy
    Member
    Join Date: Feb 2011
    Location: Next to Sweden and Norwa
    Old 11-20-2011 , 12:44   Re: [ANY] GeoLocation (aka IPtoCity)
    Reply With Quote #2

    This is gonna be a very useful tool when the Black Market Business Heavy needs to track down a Free to Play player. Great.
    JoBarfCreepy is offline
    Sreaper
    髪を用心
    Join Date: Nov 2009
    Old 11-21-2011 , 16:19   Re: [ANY] GeoLocation (aka IPtoCity)
    Reply With Quote #3

    Cool plugin thanks! Would you mind adding a cvar that restricts the console output for admins only as well? Ex, so non-admins wouldn't even see locations or anything related in cosnole.

    Last edited by Sreaper; 11-21-2011 at 16:19.
    Sreaper is offline
    Despirator
    Senior Member
    Join Date: Jun 2011
    Location: Kazakhstan ->Shymkent
    Old 11-24-2011 , 13:00   Re: [ANY] GeoLocation (aka IPtoCity)
    Reply With Quote #4

    make this plugin to be library and provide some natives like getting client city, and it will be more useful

    Last edited by Despirator; 11-24-2011 at 13:01.
    Despirator is offline
    jungjunghoo
    Senior Member
    Join Date: Sep 2009
    Old 11-28-2011 , 09:00   Re: [ANY] GeoLocation (aka IPtoCity)
    Reply With Quote #5

    May I ask add this function?
    Not consol. Boradcast in chat
    Like this

    http://addons.eventscripts.com/addons/view/iptosity
    jungjunghoo is offline
    Snake60
    Senior Member
    Join Date: Jul 2008
    Location: Russia, Pskov
    Old 11-29-2011 , 10:00   Re: [ANY] GeoLocation (aka IPtoCity)
    Reply With Quote #6

    Wow! GJ!
    Agry this jungjunghoo

    P.S.
    To jungjunghoo
    Plugin put info in chat if you change in geolocation.sp all PrintToConsole on PrintToChat and compile the plugin...
    P.P.S. But not not enough buffer to display all info about player
    Make it
    Attached Files
    File Type: sp Get Plugin or Get Source (geolocation.sp - 577 views - 15.1 KB)
    File Type: smx geolocation.smx (10.5 KB, 586 views)
    __________________

    Last edited by Snake60; 11-29-2011 at 15:52. Reason: add PPS
    Snake60 is offline
    Send a message via ICQ to Snake60 Send a message via MSN to Snake60 Send a message via Skype™ to Snake60
    checkster
    BANNED
    Join Date: Apr 2007
    Location: Norway
    Old 12-06-2011 , 08:15   Re: [ANY] GeoLocation (aka IPtoCity)
    Reply With Quote #7

    Plugin failed to compile
    checkster is offline
    mentor
    Member
    Join Date: Apr 2011
    Old 12-06-2011 , 11:10   Re: [ANY] GeoLocation (aka IPtoCity)
    Reply With Quote #8

    download smx file, under "Get Plugin..."
    mentor is offline
    Snake60
    Senior Member
    Join Date: Jul 2008
    Location: Russia, Pskov
    Old 12-09-2011 , 00:34   Re: [ANY] GeoLocation (aka IPtoCity)
    Reply With Quote #9

    Read requirements, if you want compile plugin by yourself.
    Quote:
    • 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.
    __________________
    Snake60 is offline
    Send a message via ICQ to Snake60 Send a message via MSN to Snake60 Send a message via Skype™ to Snake60
    wranger
    SourceMod Donor
    Join Date: Aug 2009
    Old 12-11-2011 , 00:50   Re: [ANY] GeoLocation (aka IPtoCity)
    Reply With Quote #10

    Would be pretty cool if it stored the player info in a database in a Name, IP, Country, Last Connect field so that it could be placed on a website. Hope that makes sense.

    Would help with finding aliasing users before they are banned for cheating when they're just a good player.
    wranger is offline
    Reply


    Thread Tools
    Display Modes

    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 11:30.


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