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

amxip, showip, printip


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
jayprakash
Junior Member
Join Date: Apr 2009
Old 11-07-2009 , 07:03   amxip, showip, printip
Reply With Quote #1

There are many "show ip" plugins, but none has what I need. So here is a new one.

Features:
1) Print a list of all connected players.
- client & server console commands
  • amx_ip
  • amxip
  • show_ip
  • showip
- clcmd
  • say /showip
- prints also SPECTATOR and UNASSIGNED
- annonymization of admins:
  • If a player invokes amx_ip, all connected admins get a different IP and steamID. Both are derived from 'id' and random values created on plugin_init.
  • IP is currently set in a dynamic range 78.99.*.* (TODO : multiple dynamic ranges.)
  • Admins see each others real IPs and SteamIDs.

Code:
[IP] printing all players IPs
[IP] 1: 'Player1' (CT)   -- 72.109.74.152:27005 [STEAM_0:0:12423349]
[IP] 2: 'Player2' (UNASSIGNED)   -- 87.216.155.23:27005 [STEAM_0:0:1622349]
[IP] 3: 'Player3' (TERRORIST)   -- 73.136.133.136:28305 [STEAM_0:0:1654741]
[IP] 4: 'HLTV-Guard' (SPECTATOR)   -- 42.230.284.36:37017 [HLTV]
(TODO: 2-letter assigment descriptions - CT, TE, UN, SP.)


2) printing IP and SteamID on player connect/disconnect to admins.
Code:
[IP] 'Player1' Connected -- 72.109.74.152:27005 [STEAM_0:0:12423349]
[IP] 'Player1' Disconnected -- 72.109.74.152:27005 [STEAM_0:0:12423349]
(admin annonymization does not work for connects and disconnects! Connect pritns are meant only for admins.)


CVARS:

//cvar amx_ip_con_print = [0|1]
// default 1
// 0 - do not print (dis)connected players in admin consoles
// 1 - print (dis)connected players in admin consoles
//cvar amx_ip_srv_print = [0|1]
// default 1
// 0 - do not print (dis)connected players in server console
// 1 - print (dis)connected players in server console


CONSTATNTS:

#define IP_LVL ADMIN_ALL
level at which are amx_ip commands availiable

#define IP_CON_PRINT_LVL ADMIN_KICK
level at which are connect and disconnect messages availiable.


(plugin is already on multiple servers and working flawlessly.)
Attached Files
File Type: sma Get Plugin or Get Source (amx_ip.sma - 1334 views - 4.3 KB)
jayprakash is offline
jayprakash
Junior Member
Join Date: Apr 2009
Old 11-07-2009 , 07:08   Re: amxip, showip, printip
Reply With Quote #2

Could please some amxx proffesional tell me,

What is the highest possible value of a players hl id? (I believe it's 65535)

Because if its much larger, then there could be a very narrow possibility to lag a server. If an admin has a very very high id > ~250000, and player spams with amx_ip.
But I believe he would get channel overflow much sooner.
jayprakash is offline
Seehank
Senior Member
Join Date: Nov 2005
Location: Slovakia
Old 11-07-2009 , 07:15   Re: amxip, showip, printip
Reply With Quote #3

Developed for our servers :-) And I must say yet IT ROCKS!!!
__________________
Cheater ONCE, cheater FOREVER !!!
Seehank is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-07-2009 , 07:53   Re: amxip, showip, printip
Reply With Quote #4

Quote:
//create hidden IP
Not sure to understand, why don't you write just something like '[Hidden]' instead of writing a fake ip/steamid ?
__________________
Arkshine is offline
jayprakash
Junior Member
Join Date: Apr 2009
Old 11-07-2009 , 08:34   Re: amxip, showip, printip
Reply With Quote #5

Quote:
Originally Posted by Arkshine View Post
Not sure to understand, why don't you write just something like '[Hidden]' instead of writing a fake ip/steamid ?
I don't want players to know who is ADMIN.

I don't want to hide IP but hide admin.
jayprakash is offline
Muscle Brazil
Senior Member
Join Date: Apr 2009
Location: Brazil
Old 11-07-2009 , 09:11   Re: amxip, showip, printip
Reply With Quote #6

good. I am sure if this plugin performs an action. that shows all the ip and serves STEAM_ID players in the hud after connected?
Muscle Brazil is offline
jayprakash
Junior Member
Join Date: Apr 2009
Old 11-07-2009 , 09:28   Re: amxip, showip, printip
Reply With Quote #7

not hud.
to console.

Admin does not need all the time to see who is connecting.

But no cheater gets away, because with disconnect he leaves a trace in admins console.
jayprakash is offline
Muscle Brazil
Senior Member
Join Date: Apr 2009
Location: Brazil
Old 11-07-2009 , 10:04   Re: amxip, showip, printip
Reply With Quote #8

Seems nice. More So Admin View Ne That?
Muscle Brazil is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 11-07-2009 , 13:40   Re: amxip, showip, printip
Reply With Quote #9

Quote:
Originally Posted by jayprakash View Post
  • If a player invokes amx_ip, all connected admins get a different IP and steamID. Both are derived from 'id' and random values created on plugin_init.
What's the point of this? None if you aske me. SteamID will remain unchanged in 'status'.
__________________
fysiks is online now
jayprakash
Junior Member
Join Date: Apr 2009
Old 11-07-2009 , 13:54   Re: amxip, showip, printip
Reply With Quote #10

Quote:
Originally Posted by fysiks View Post
What's the point of this? None if you aske me. SteamID will remain unchanged in 'status'.
hmm....
thanks for the remainder
I totally forgot that it is also in status

The whole point of changing steamid/IP are half-intelligent, or better, totaly dumb people, who are able to remember IP/ID of admins:
"hey admin, change map"
"hey cheater, admin is here, stop cheating" ..
and so on...
jayprakash is offline
Reply



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 21:43.


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