Raised This Month: $ Target: $400
 0% 

Kick IP's


Post New Thread Reply   
 
Thread Tools Display Modes
stask0
Senior Member
Join Date: Aug 2007
Old 07-01-2008 , 21:31   Re: Kick IP's
Reply With Quote #21

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

#define PLUGIN "Nick Checker"
#define VERSION "1.0"
#define AUTHOR "stask0"

new const IP[] =
{
    
"",
    
"ip1",
    
"ip2",
    
"ip3",
    
"ip4",
    
"ip5"
}

public 
plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
}

public 
checkips(id
{
    new 
name[32]
    
get_user_name(idname31)
    
    new 
args[20]
    
read_args(args19)
    
    for ( new 
0sizeof(IP); i++ )
    {
    
    if( 
equali(nameIP[i]))
    {
        
server_cmd("kick #%d You are not allowed to put ip's at your nick.",get_user_userid(id)) 
        
        
client_print(0print_chat"%s was kicked cuz he tryed to reclame an other server."name)
        }
    }
}

public 
client_connect(id
{
    
checkips(id)
}

public 
client_infochanged(id
{
    
checkips(id)

__________________
+ karma if i helped
stask0 is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 07-01-2008 , 23:52   Re: Kick IP's
Reply With Quote #22

stask0: that is still not what he wants.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
stask0
Senior Member
Join Date: Aug 2007
Old 07-02-2008 , 09:02   Re: Kick IP's
Reply With Quote #23

I asked him at PM what exacly he wannts... and he told me this:
Quote:
Originally Posted by Counter-Pro
Quote:
Originally Posted by stask0
hey dude.... i saw your post and ... you sayd "if player name is . .. . . .(ip) .. he will get automatic kick" so you mean if hes name is like "JOIN "IP" PLEASE" he will get kicked or? cuz i thought different thing when i saw your first post.. i can try to give you link there are such plugins i just need to change fell lines in them...
Yeah, That what i wanted, i wish to do that on my self but i don't know how to.

If you can change some lines and make me that script thanks you.
__________________
+ karma if i helped
stask0 is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 07-02-2008 , 09:41   Re: Kick IP's
Reply With Quote #24

I know. He wants it to automatically detect the IP, not pick from a list.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
stask0
Senior Member
Join Date: Aug 2007
Old 07-02-2008 , 09:48   Re: Kick IP's
Reply With Quote #25

Ohh....Okay so... what about this?
PHP Code:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Nick Checker"
#define VERSION "1.0"
#define AUTHOR "stask0"

/*new const IP[] =
{
    "",
    "ip1",
    "ip2",
    "ip3",
    "ip4",
    "ip5"
}*/

public plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
}

public 
checkips(id
{
    new 
name[32]
    
get_user_name(idname31)
    
    new 
args[20]
    
read_args(args19)
    
    
/*for ( new i = 0; i < sizeof(IP); i++ )
    {
    
    if( equali(name, IP[i]))
    {*/
    
    
if( equali(name"85."3) || equali(name"192."4) || equali(name"87."3) || equali(name"77."3) || equali(name"195." ,4) || equali(name"193."4) || equali(name"200."4))
    {
        
server_cmd("kick #%d You are not allowed to put ip's at your nick.",get_user_userid(id)) 
        
        
client_print(0print_chat"%s was kicked cuz he tryed to reclame an other server."name)
    }
}

public 
client_connect(id
{
    
checkips(id)
}

public 
client_infochanged(id
{
    
checkips(id)

__________________
+ karma if i helped

Last edited by stask0; 07-02-2008 at 09:55.
stask0 is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 07-02-2008 , 10:01   Re: Kick IP's
Reply With Quote #26

No. AUTO detect, meaning it will automatically figure out if there is an IP in the name, same way the "Dont Say IPs" plugin does it.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou 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 22:19.


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