Raised This Month: $ Target: $400
 0% 

Solved Anti Spam Ip In Nick


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
instinctpt1
Senior Member
Join Date: Dec 2016
Location: Chandigarh, India
Old 06-13-2018 , 12:41   Re: Anti Spam Ip In Nick
Reply With Quote #1

There can be intense logic of detecting a IP
But still posting this little thing.. maybe if this can help

PHP Code:
#include <amxmodx>

new Blocked[][] =
{
    
":27015"":27016""1.2.3.4" // xD
}

public 
plugin_init()
    
register_plugin("Anti Name IP""1.0""DiGiTaL")

public 
client_authorized(id)
{
    new 
szName[32]
    
get_user_name(idszNamecharsmax(szName))
    for(new 
isizeof Blocked;i++)
        if(
containi(szNameBlocked[i]) != -1
            
server_cmd("kick #%d ^"IP Spam is not allowed Here !^""get_user_userid(id))

instinctpt1 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 00:48.


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