Raised This Month: $ Target: $400
 0% 

Stop SPAM!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Debesėlis
Senior Member
Join Date: Aug 2008
Location: Lithuania
Old 10-02-2013 , 05:32   Stop SPAM!
Reply With Quote #1

Someone can create plugin to block all spam messages?

PHP Code:
cs.
.
lt
.com
.net
.org
:27015
:27016
:27017
www
.
http:// 
I need to replace all above messages to *SPAM*.

Explanation :
If player write some message and in this message is one of the word above this message must be replaced with *SPAM* word or just block this message.

Hope you understand me. Thanks.
Debesėlis is offline
tonykaram1993
Senior Member
Join Date: Mar 2013
Location: This World
Old 10-02-2013 , 05:36   Re: Stop SPAM!
Reply With Quote #2

There are already plugins that do what you are requesting. Learn to search the forums.
P.S. There is one in the New Plugin Submissions section, search for it.
__________________
My Plugins:
UltimatePlugin
UltimateSurf
UltimateAdmin
Code:
rcon version | rcon amxx version | rcon meta version
rcon amxx plugins | rcon meta list | rcon status
I AM INACTIVE ON THIS FORUM - For direct contact: [email protected]
tonykaram1993 is offline
Moody92
Veteran Member
Join Date: May 2011
Location: Oman
Old 10-02-2013 , 09:13   Re: Stop SPAM!
Reply With Quote #3

Search for Anti Commerce
Moody92 is offline
T-z3P
Senior Member
Join Date: Apr 2008
Location: Iasi, Romania
Old 10-02-2013 , 11:10   Re: Stop SPAM!
Reply With Quote #4

Try this.

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

new PLUGIN[]="AMXX Anti-Spam"
new AUTHOR[]="T-z3P"
new VERSION[]="0.1"

new advertisement[][]=
{
    
"cs.",
    
".lt",    
    
".com",
    
".net",
    
".org",
    
":27015",
    
":27016",
    
":27016",
    
"www.",
    
"http://"
}

public 
plugin_init()
{
    
register_plugin(PLUGIN,VERSION,AUTHOR)
    
    
register_clcmd("say""check_chat"); 
    
register_clcmd("say_team""check_chat"); 
}

public 
check_chat(id)
{
    new 
inum
    
new players[32]
    new 
said[192]
    
read_args(said,192)
    
get_players(players,inum)
    
    for(new 
i=0i<sizeof(advertisement); i++)
    {
        if(
containi(saidadvertisement[i]))
        {
            
client_print(idprint_chat"[iNFO] Your chat message contains the name of a community or website and has been blocked")
            return 
PLUGIN_HANDLED
        
}
    }
    
    return 
PLUGIN_CONTINUE

__________________


T-z3P is offline
Send a message via Yahoo to T-z3P Send a message via Skype™ to T-z3P
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 10-03-2013 , 16:17   Re: Stop SPAM!
Reply With Quote #5

For what the heck are you using get_players?
__________________
Kia is offline
akash_guptacosmos
Senior Member
Join Date: May 2013
Location: India,Kolkata
Old 10-04-2013 , 05:37   Re: Stop SPAM!
Reply With Quote #6

Advance spam protection Search
__________________
Quote:
Originally Posted by joropito View Post
I use orpheu to cook pizza
Like my page Please

https://www.facebook.com/LolXdTRolled
akash_guptacosmos is offline
ScrappeR
Senior Member
Join Date: Dec 2010
Old 10-05-2013 , 07:52   Re: Stop SPAM!
Reply With Quote #7

Quote:
Originally Posted by T-z3P View Post
Try this.

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

new PLUGIN[]="AMXX Anti-Spam"
new AUTHOR[]="T-z3P"
new VERSION[]="0.1"

new advertisement[][]=
{
    
"cs.",
    
".lt",    
    
".com",
    
".net",
    
".org",
    
":27015",
    
":27016",
    
":27016",
    
"www.",
    
"http://"
}

public 
plugin_init()
{
    
register_plugin(PLUGIN,VERSION,AUTHOR)
    
    
register_clcmd("say""check_chat"); 
    
register_clcmd("say_team""check_chat"); 
}

public 
check_chat(id)
{
    new 
inum
    
new players[32]
    new 
said[192]
    
read_args(said,192)
    
get_players(players,inum)
    
    for(new 
i=0i<sizeof(advertisement); i++)
    {
        if(
containi(saidadvertisement[i]))
        {
            
client_print(idprint_chat"[iNFO] Your chat message contains the name of a community or website and has been blocked")
            return 
PLUGIN_HANDLED
        
}
    }
    
    return 
PLUGIN_CONTINUE

And can you add in this script Name Spam .com .net www." to change name automatically example www.myweb.com thanks!
__________________

Last edited by ScrappeR; 10-05-2013 at 07:53.
ScrappeR 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:05.


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