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

Need Anti Abuse Plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
T0FF
Member
Join Date: Oct 2014
Location: Asia
Old 01-17-2015 , 11:51   Need Anti Abuse Plugin
Reply With Quote #1

Hey guys, I am running CS 1.6 server

I need a simple anti abuse plugin, which blocks abusive/swear words and shows '*' instead of that abusive word. There should be no punishment on swearing.

This plugins, should also have a "White List" collection of good words which should not be blocked because of swearing words.

There are already many swearing plugins, but most of them have punishment features and some have limited swear/abusive(words) and some don't work on my server.
T0FF is offline
RateX
Veteran Member
Join Date: Jun 2012
Location: 0o. SEA .o0
Old 01-17-2015 , 13:26   Re: Need Anti Abuse Plugin
Reply With Quote #2

Try:
PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Bad Words"
#define VERSION "1.0"
#define AUTHOR "RateX"

new BAD_WORDS[][] = 
{
    
// Add the bad words here. Ex:
    
"damn",
    
"ass"
}

public 
plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd("say ""ChatGlobalCommand")
    
register_clcmd("say_team ""ChatTeamCommand")
}

public 
ChatGlobalCommand(id)
{
    static 
lastsaid[512], said[512]
    
read_args(said512)
    if(
equal(saidlastsaid))
        return 
PLUGIN_CONTINUE
        
    
for(new 0sizeof BAD_WORDSi++)
    {
        if(
containi(saidBAD_WORDS[i]))
            
replace_all(saidcharsmax(said), BAD_WORDS[i], "***")    
    }
    
formatex(lastsaidcharsmax(lastsaid), "%s"said)
    
client_cmd(id"say %s"said)
    return 
PLUGIN_HANDLED
}

public 
ChatTeamCommand(id)
{
    static 
lastsaid[512], said[512]
    
read_args(said512)
    if(
equal(saidlastsaid))
        return 
PLUGIN_CONTINUE
        
    
for(new 0sizeof BAD_WORDSi++)
    {
        if(
containi(saidBAD_WORDS[i]))
            
replace_all(saidcharsmax(said), BAD_WORDS[i], "***")    
    }
    
formatex(lastsaidcharsmax(lastsaid), "%s"said)
    
client_cmd(id"say_team %s"said)
    return 
PLUGIN_HANDLED

RateX is offline
Eagle07
Veteran Member
Join Date: May 2014
Location: Morocco :D
Old 01-17-2015 , 14:44   Re: Need Anti Abuse Plugin
Reply With Quote #3

https://forums.alliedmods.net/showth...36#post2225036
https://forums.alliedmods.net/showth...76#post2232576
__________________
Eagle07 is offline
T0FF
Member
Join Date: Oct 2014
Location: Asia
Old 01-17-2015 , 15:14   Re: Need Anti Abuse Plugin
Reply With Quote #4

Quote:
Originally Posted by RateX View Post
Try:
Thank you so much brother for ur help.
But want to modify it a bit.

Please add admin flag and make white list file also for good words so that good words don't get blocked.
And other thing, can there should be a separate file for swearing words?
So that i can easily add more words with times.

Last edited by T0FF; 01-17-2015 at 15:17.
T0FF is offline
T0FF
Member
Join Date: Oct 2014
Location: Asia
Old 01-17-2015 , 15:23   Re: Need Anti Abuse Plugin
Reply With Quote #5

Quote:
Originally Posted by Eagle07 View Post
Thank You So Much For Response!

Brother, Can you modify your this plugin https://forums.alliedmods.net/showth...76#post2232576 ??

Using swear words, this plugin completely vanishes/blocks the whole sentence instead of blocking just the swear words.
Followring Requirements:
1) Admin Flag
2) White List
3) Only block swear word, not all sentence
T0FF is offline
T0FF
Member
Join Date: Oct 2014
Location: Asia
Old 01-18-2015 , 10:18   Re: Need Anti Abuse Plugin
Reply With Quote #6

Quote:
Originally Posted by RateX View Post
Try:
There is a small issue buddy, if i add a swear word "damn" , the plugin you coded, will block it but if i chat while in cs and type DAMN it doesn't block it, it only blocks "damn".

Capital and Small Alphabet Issue, i have to add a swear word twice in capital and small form as well, otherwise it doesn't work.
T0FF is offline
RateX
Veteran Member
Join Date: Jun 2012
Location: 0o. SEA .o0
Old 01-18-2015 , 10:25   Re: Need Anti Abuse Plugin
Reply With Quote #7

Try this version.
Note: This version has case ignored, so you only have to put "damn", and it will block "DAMN", "Damn", "dAmn",etc..
Attached Files
File Type: sma Get Plugin or Get Source (chat_filter.sma - 846 views - 4.7 KB)
File Type: ini blacklistwords.ini (90 Bytes, 305 views)
File Type: ini whitelistwords.ini (86 Bytes, 238 views)
RateX is offline
T0FF
Member
Join Date: Oct 2014
Location: Asia
Old 01-19-2015 , 13:17   Re: Need Anti Abuse Plugin
Reply With Quote #8

Quote:
Originally Posted by RateX View Post
Try this version.
Note: This version has case ignored, so you only have to put "damn", and it will block "DAMN", "Damn", "dAmn",etc..
Thank you so much brother, it really worked out.
Stay blessed!
T0FF is offline
T0FF
Member
Join Date: Oct 2014
Location: Asia
Old 02-07-2015 , 14:45   Re: Need Anti Abuse Plugin
Reply With Quote #9

Quote:
Originally Posted by RateX View Post
Try this version.
Note: This version has case ignored, so you only have to put "damn", and it will block "DAMN", "Damn", "dAmn",etc..
Your this plugin is very much helpful for me, thanks!

Bro, can you please add "mute chat" option to this code?
There are other plugins for mute/block chat but i want this one to have chat mute option, can you please edit for me?

https://forums.alliedmods.net/showthread.php?t=257774
T0FF is offline
BaD CopY
Senior Member
Join Date: Oct 2014
Location: Home
Old 07-10-2015 , 20:48   Re: Need Anti Abuse Plugin
Reply With Quote #10

Eagle, your plugin doesn't works. Plugin doesn't show abuse message but it's block some other messages who's not in abuse file. Can you fix it please ?
BaD CopY is offline
Send a message via Yahoo to BaD CopY Send a message via Skype™ to BaD CopY
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 16:50.


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