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

ShowIP


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands        Approver:   Styles (6)
Spunky
Senior Member
Join Date: May 2008
Location: Orlando, Fl.
Old 10-30-2008 , 11:25   ShowIP
Reply With Quote #1

ShowIP 1.08
--------------------------

Description: ShowIP is a plugin designed to show the IP and country of players connecting to a server, but can be configured to display their Steam ID instead. Any IPs that should be hidden upon connection can be added to a configuration file.

Example: Player has connected/disconnected. (123.123.123.123)
Hidden IP: Player has connected/disconnected.

Commands
---
amx_showall - Fetches the IP, Steam ID, and country of a player. Usage: <name>
amx_showall_all - Fetches the IP, Steam ID, and country of every player. No parameters.
amx_showip - Fetches the IP address of a player. Usage: <name>
amx_showip_all - Fetches the IP address of every player. No parameters.
amx_showsid - Fetches the Steam ID of a player. Usage: <name>
amx_showsid_all - Fetches the Steam ID of every players. No parameters.
amx_showcountry - Fetches the country of a player. Usage: <name>
amx_showcountry_all - Fetches the country of every player. No parameters.

CVARs
---
amx_showips - Enable or disable the plugin. (1/0)
amx_showip_log - Enable or disable logging. (1/0)
amx_showip_method - Controls whether IPs or Steam IDs are used for IP hiding. (1=IP, 2=SID)
amx_showip_admin - Controls whether only admins (ban flag) are allowed to see IPs of connecting players.
amx_showip_allowed - Controls whether only a set of allowed IP addresses or Steam IDs can see connecting player information.
amx_showip_mode - Switch through the 3 available modes. (1=All, 2=IP, 3=SID)

Changelog
---
1.08
  • Added amx_showip_allowed CVAR. You can couple this with amx_showip_admin so that only if the person is allowed (compared to a list) and they're an admin, they can see connecting player information.
  • Added allowed.cfg to configs.
1.07
  • Added amx_showip_admin CVAR.
  • If CVAR values are set higher than their maximum, they will be reset to default values.
1.06
  • Minor bug fixes.
1.05
  • Fixed show_all commands printing blank values for empty slots. Empty slots will be skipped over (hopefully).
  • Added amx_showip_method CVAR. You can now add Steam IDs instead of IP addresses in a separate sids.cfg file in your showip configs directory. If 1, use IPs. If 2, use Steam IDs.
  • Added sids.cfg file to configs package.
  • Added amx_showip_log CVAR. If 0, logging is disabled.
  • Cleaned up logging a little bit.
  • Minor code optimizations.
1.04
  • Added amx_showip_log CVAR.
1.03
  • Fixed potential bug due to hardcoding configs path.
1.02
  • Added amx_showall_all command.
  • Added amx_showip_all command.
  • Added amx_showsid_all command.
  • Added amx_showcountry_all command.
  • Made a few nice code optimizations.
  • Further improved the command display.
1.01
  • Added amx_showall command.
  • Improved command display, looks prettier.
1.0
  • Release.
Attached Files
File Type: sma Get Plugin or Get Source (showip.sma - 10006 views - 21.4 KB)
File Type: zip configs.zip (813 Bytes, 5685 views)

Last edited by Spunky; 11-05-2008 at 11:33.
Spunky is offline
Send a message via AIM to Spunky
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 10-30-2008 , 11:48   Re: ShowIP
Reply With Quote #2

TIP: Add a picture so the peoples know how it looks...
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
Spunky
Senior Member
Join Date: May 2008
Location: Orlando, Fl.
Old 10-30-2008 , 11:52   Re: ShowIP
Reply With Quote #3

No picture, but I added an example for you. If the IP of the connected player is on the list of IPs to hide, their IP will not appear when connecting or disconnecting.
Spunky is offline
Send a message via AIM to Spunky
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 10-30-2008 , 11:55   Re: ShowIP
Reply With Quote #4

Ohhh...

Well... Is it something like a connecting message?
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
Spunky
Senior Member
Join Date: May 2008
Location: Orlando, Fl.
Old 10-30-2008 , 11:57   Re: ShowIP
Reply With Quote #5

That's one feature, yes. My examples show what is displayed to players when a new player connects/disconnects.
Spunky is offline
Send a message via AIM to Spunky
AcidoX
Senior Member
Join Date: Oct 2007
Location: Vilnius
Old 10-30-2008 , 12:14   Re: ShowIP
Reply With Quote #6

Better make amx_showips, showcountrys, showids, or just amx_something and shows all players ID NAME IP STEAMID
__________________
Who need lockerz invite? Pm me.
AcidoX is offline
Send a message via Skype™ to AcidoX
Spunky
Senior Member
Join Date: May 2008
Location: Orlando, Fl.
Old 10-30-2008 , 12:35   Re: ShowIP
Reply With Quote #7

Quote:
Originally Posted by AcidoX View Post
Better make amx_showips, showcountrys, showids, or just amx_something and shows all players ID NAME IP STEAMID
Added a command to display all of a player's information. Working on a command to display every player's information.

Edit: New update, added your request.

Last edited by Spunky; 10-30-2008 at 13:38.
Spunky is offline
Send a message via AIM to Spunky
FakeNick
Senior Member
Join Date: Feb 2008
Location: Poland
Old 10-30-2008 , 13:39   Re: ShowIP
Reply With Quote #8

PHP Code:
    for (new 0file_size("addons/amxmodx/configs/showip/ips.cfg"1); i++)
    {
        
read_file("addons/amxmodx/configs/showip/ips.cfg"iresult19resultLen
Don't hardcode paths, use get_configsdir ;).
__________________


[||||||||||] Snowball war v3.05

Pol
ish translations here ;) (PM me if you want one).


FakeNick is offline
Spunky
Senior Member
Join Date: May 2008
Location: Orlando, Fl.
Old 10-30-2008 , 13:50   Re: ShowIP
Reply With Quote #9

Quote:
Originally Posted by FakeNick View Post
PHP Code:
    for (new 0file_size("addons/amxmodx/configs/showip/ips.cfg"1); i++)
    {
        
read_file("addons/amxmodx/configs/showip/ips.cfg"iresult19resultLen
Don't hardcode paths, use get_configsdir ;).
Fixed, should be better now. Thanks for the heads up.
Spunky is offline
Send a message via AIM to Spunky
FakeNick
Senior Member
Join Date: Feb 2008
Location: Poland
Old 10-30-2008 , 13:59   Re: ShowIP
Reply With Quote #10

No problem ;).
BTW. Nice plugin :].
__________________


[||||||||||] Snowball war v3.05

Pol
ish translations here ;) (PM me if you want one).


FakeNick 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 20:18.


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