Raised This Month: $ Target: $400
 0% 

Plugin that shows all users ip


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mazmaajinsh
Senior Member
Join Date: Apr 2005
Location: Latvia
Old 10-28-2006 , 15:09   Plugin that shows all users ip
Reply With Quote #1

Could someone make a plugin that shows all users IP adresses when user types amx_list in console? i saw that plugin on one server.. I think it is on AdminmodX but i need a standalone version..
Need to be that EVERY user can type it.
__________________
Ahujena
mazmaajinsh is offline
Imanoobie
BANNED
Join Date: Sep 2006
Old 10-28-2006 , 15:14   Re: Plugin that shows all users ip
Reply With Quote #2

That is dangerous for the client.

You can be a victim of virus attacks etc, if someone gets your IP.

Maybe restriction ADMIN_ADMIN
Imanoobie is offline
gunsniper
Member
Join Date: Jun 2005
Location: PA - USA
Old 10-28-2006 , 21:05   Re: Plugin that shows all users ip
Reply With Quote #3

it should be an admin restricted plugin, however if the user dosnt have upto date virus blocker thats their problem, lol but back on topic, i think that it would be nice to lock/target a users ip, kinda how GEOIP works, only u can read the ip
__________________
gunsniper is offline
Send a message via AIM to gunsniper Send a message via Yahoo to gunsniper
blade12
BANNED
Join Date: Oct 2006
Old 10-29-2006 , 08:55   Re: Plugin that shows all users ip
Reply With Quote #4

Here is my plugin admin only and only peaple with ACCESS command a only can use it admin immunity peaple with lvl immunity can use only

Last edited by blade12; 12-06-2006 at 13:37.
blade12 is offline
Rolnaaba
Veteran Member
Join Date: May 2006
Old 10-30-2006 , 10:18   Re: Plugin that shows all users ip
Reply With Quote #5

Quote:
Originally Posted by Imanoobie View Post
That is dangerous for the client.

You can be a victim of virus attacks etc, if someone gets your IP.

Maybe restriction ADMIN_ADMIN
how is that dangerous for client anyone with capabilities of creating virusus using IP can EASILY get your IP in much easier ways PLease refer to my sig thank you.
__________________
DO NOT PM me about avp mod.
Rolnaaba is offline
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 10-30-2006 , 22:03   Re: Plugin that shows all users ip
Reply With Quote #6

PHP Code:
#include <amxmodx>
#include <amxmisc>

/*Description: This plugin enables an admin to find out a player's ip by 
    typing in amx_ip <name>. The ip prints in console and in the regular game.*/

public plugin_init() 

    
register_plugin("Show IP","1.0","Blade12"); 
    
register_concmd("amx_ip","ShowIP",0,"< player , @TEAM , @ALL , *>"); 


public 
ShowIP(id
{
    new 
Arg[36]; 
    new 
szIP[46] , szName[36]; 
    new 
Players[32] , pnum
    
read_argv(1Arg 35); 

    if(
Arg[0] == '@'
    { 
        switch( 
Arg[1] ) 
        { 
            case 
'C' 'c'
            { 
                
console_print(id "[AMXX] IP print out for CT team"); 
                
get_players(Players pnum "ce" "CT"); 
                for(new 
0pnumi++) 
                { 
                    
get_user_ip(Players[i] , szIP 45 1); 
                    
get_user_name(Players[i] , szIP 35);
                    
console_print(id "%d) %s     - %s", (1) , szName szIP); 
                } 
            } 
            case 
'T' 't'
            { 
                
console_print(id "[AMXX] IP print out for T team"); 
                
get_players(Players pnum "ce" "TERRORIST"); 
                for(new 
0pnumi++) 
                { 
                    
get_user_ip(Players[i] , szIP 45 1); 
                    
get_user_name(Players[i] , szIP 35); 
                    
console_print(id "%d) %s     - %s", (1) , szName szIP); 
                } 
            } 
        } 
    } 
    else if(
equalArg "*")) 
    { 
        
get_playersPlayers pnum "c"); 
        
console_print(id "[AMXX] IP print out for all players"); 
        for(new 
i=0pnumi++) 
        { 
            
get_user_ip(Players[i],szIP 45 1); 
            
get_user_name(Players[i] , szName 35); 
            
console_print(id "%d) %s     - %s", (1), szName szIP); 
        } 
    } 
    else 
    { 
        new 
Target cmd_target(id Arg 10); 
        if(!
is_user_connected(Target)) 
            return 
PLUGIN_HANDLED
        
get_user_ipTarget szIP 45 1); 
        
get_user_nameTarget szName 35); 
        
console_printid "[AMXX] %s's IP address : %s"szName szIP); 
    } 
    return 
PLUGIN_HANDLED


Last edited by SweatyBanana; 10-30-2006 at 22:19.
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
Zenith77
Veteran Member
Join Date: Aug 2005
Old 10-30-2006 , 22:15   Re: Plugin that shows all users ip
Reply With Quote #7

How about the command status?
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 10-30-2006 , 22:19   Re: Plugin that shows all users ip
Reply With Quote #8

WHAT.
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
blade12
BANNED
Join Date: Oct 2006
Old 10-31-2006 , 03:52   Re: Plugin that shows all users ip
Reply With Quote #9

amx_ip @ALL then when the list comes up u gotta put
amx_ip ghost or the name thats in there
blade12 is offline
klier1kas
Junior Member
Join Date: May 2006
Old 01-12-2007 , 12:10   Re: Plugin that shows all users ip
Reply With Quote #10

Hello, sombody can rewrite this plugin when I write console amx_ip and print all player ips, this plugin is good, but must write amx_ip <team) or amx_ips <*>
PHP Code:
#include <amxmodx>
#include <amxmisc>

/*Description: This plugin enables an admin to find out a player's ip by 
    typing in amx_ip <name>. The ip prints in console and in the regular game.*/

public plugin_init() 

    
register_plugin("Show IP","1.0","Blade12"); 
    
register_concmd("amx_ip","ShowIP",0,"< player , @TEAM , @ALL , *>"); 


public 
ShowIP(id
{
    new 
Arg[36]; 
    new 
szIP[46] , szName[36]; 
    new 
Players[32] , pnum
    
read_argv(1Arg 35); 

    if(
Arg[0] == '@'
    { 
        switch( 
Arg[1] ) 
        { 
            case 
'C' 'c'
            { 
                
console_print(id "[AMXX] IP print out for CT team"); 
                
get_players(Players pnum "ce" "CT"); 
                for(new 
0pnumi++) 
                { 
                    
get_user_ip(Players[i] , szIP 45 1); 
                    
get_user_name(Players[i] , szIP 35);
                    
console_print(id "%d) %s     - %s", (1) , szName szIP); 
                } 
            } 
            case 
'T' 't'
            { 
                
console_print(id "[AMXX] IP print out for T team"); 
                
get_players(Players pnum "ce" "TERRORIST"); 
                for(new 
0pnumi++) 
                { 
                    
get_user_ip(Players[i] , szIP 45 1); 
                    
get_user_name(Players[i] , szIP 35); 
                    
console_print(id "%d) %s     - %s", (1) , szName szIP); 
                } 
            } 
        } 
    } 
    else if(
equalArg "*")) 
    { 
        
get_playersPlayers pnum "c"); 
        
console_print(id "[AMXX] IP print out for all players"); 
        for(new 
i=0pnumi++) 
        { 
            
get_user_ip(Players[i],szIP 45 1); 
            
get_user_name(Players[i] , szName 35); 
            
console_print(id "%d) %s     - %s", (1), szName szIP); 
        } 
    } 
    else 
    { 
        new 
Target cmd_target(id Arg 10); 
        if(!
is_user_connected(Target)) 
            return 
PLUGIN_HANDLED
        
get_user_ipTarget szIP 45 1); 
        
get_user_nameTarget szName 35); 
        
console_printid "[AMXX] %s's IP address : %s"szName szIP); 
    } 
    return 
PLUGIN_HANDLED

klier1kas 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 12:36.


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