View Single Post
Author Message
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen.
Old 02-16-2014 , 14:36   [ANY] Simple Chat Filter
Reply With Quote #1


Simple Chat Filter


Description :
Bored about those rude words ? Well, now you can get ride of those ! Replace them with other words !

Features :
  • Easy to configure
  • Work with all other chat plugins !
  • Support a maximum of 999 words !
  • More features are coming soon !

Command and Cvar :
sm_reloadfilter - reload manually the word list. Do it after each changes done in chat_filter.cfg !

Installation :
REQUIRE: Simple chat processor : https://forums.alliedmods.net/showthread.php?p=2448768
1) Put chat_filter.smx in your plugin folder : sourcemod/plugins
2) Put chat_filter.cfg in your configs folder : sourcemod/configs
3) Configure the plugin, edit chat_filter.cfg with your favorite text editor !
4) Restart server, reload map or reload plugins folder.

NOTE: You need to use sm_reloadfilter OR reload plugin (sm plugins reload chat_filter) if you have done changes in your chat_filter.cfg !

Require the following include to compile manually :
Simple Chat Processor
SMLIB

Configuration :
Here is a exemple of a simple configuration :
PHP Code:
"Filter"
{
    
"0"
    
{
        
"word"           "fuck"
        "replace"        "Love"
    
}
    
"1"
    
{
        
"word"           "dog" //dOg, Dog or doG is wrong ! Do NOT use upper case ! Only lower case ! (Not maj. or cap lock, got it ?)
        
"replace"        "Cat"
    
}

/!\ warning /!\ : Always put "word" as lower case !

Request and things to do :
  • Add a non-case sensitive support. -> DONE!
  • Add a punishement support. (Kick, slay, explose ?)
  • Add a command to manually reload word list. -> DONE!
... and all what you want ! Feel free to request !

Logs :
Spoiler
Attached Files
File Type: cfg chat_filter.cfg (66 Bytes, 1360 views)
File Type: smx chat_filter.smx (13.4 KB, 956 views)
File Type: sp Get Plugin or Get Source (chat_filter.sp - 1054 views - 2.8 KB)
__________________
Want to check my plugins ?

Last edited by Arkarr; 03-13-2017 at 12:10.
Arkarr is offline