AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [ANY] Universal Chat Filter (Version 1.2.2, 2019-01-05) (https://forums.alliedmods.net/showthread.php?t=288524)

almostagreatcoder 10-01-2016 18:33

[ANY] Universal Chat Filter (Version 1.2.2, 2019-01-05)
 
28 Attachment(s)
Universal Chat Filter (Version 1.2.2, 2019-01-05)

Update 2018-12-30: Added the functionality to show url pages plus the ability to specify a 'lifespan' for sections ("valid from" and "valid to" for regex matches)!

A universal chat filter plugin using regular expressions. You can trigger text replacements, name replacements, colors, web pages, server commands, and even sounds with it. Thus you can use it as a guardian over your server's chat language as well a fun replacement tool and even for kicking annoying LMAOBox players (much faster than the VAC system). Oh, and anti CAPS is possible as well.

You need one of these plugins to get the Chat Filter working:
Features
  • Regex filter expression -> filter chat entries by (or player names) by using regular expressions. If you don't know what this is, take a look e.g. here: http://www.regular-expressions.info/tutorial.html
  • Additional filter conditions -> you can specify additional filter conditions like members of a certain team, (non) admins, members of custom chatfilter groups, or exceeding a specified CAPS-letter-to-non-CAPS-letter ratio. You can also specify that filter rules shall only be valid in a certain timespan.
  • Flexible replacements -> choose whether to block a chat entry either completely or just for all other players or just replace it - or parts of it. You can use regex grouping tags in replacements, too.
  • Color replacement options -> you can assign colors in your replacement expressions. (If your game supports this - sorry, CS:GO players!)
  • Color flow replacement options -> use not only plain colors but 'rainbow-like' color flows in your replacement. Like this: http://79.143.181.215/img/chatfilter_colorflow2.gif
  • Sound replacement options -> you can even play sounds as a replacement or as a part of it!
  • Trigger commands -> use the penalty point system to trigger any server command at (almost) any point.
  • Display URLs -> use the admin command 'sm_showurl' to display any URL to any player.

Commands

The only essential thing is to set up a proper chatfilter config file (chatfilter.cfg). Then anything else will happen automatically. For maintenance or information reasons you can use these commands:
  • sm_chatfilter_reload -> reload the chatfilter.cfg file.
  • sm_chatfilter_reset <name|#userid> [<section id>] -> reset a players penalty points. You can add a config section number if you only want to erase the points for a certain section. (See below: Configuration)
  • sm_chatfilter_status -> show plugin details and a table of all players' information.
  • sm_chatfilter_group <name|#userid> <group> -> assign a player to a group (that has been defined in the config file - see below).
  • sm_chatfilter_ungroup <name|#userid> -> erase the group assignment for a player.
  • sm_showurl <name|#userid> "<url>" [<title>] -> show any URL to any player.

CVars
  • chatfilter_version -> the plugin's version, obviously...
  • sm_chatfilter_enabled -> 1/0 for enabling or disabling the chatfilter. (Default 1)
  • sm_chatfilter_admins -> 0/1 for disabling or enabling the chatfilter on admins. (Default 0)
  • sm_chatfilter_keep_penalty -> 1/0 for keeping or resetting a player's penalty points on reconnect. (Default 1)
  • sm_chatfilter_loglevel -> 0/1/2: 0 = no logging / 1 = log only triggered actions to the sourcemod log file / 2 = log actions and replacements. (Default 1)

Installation

First: Make sure you have one of these two plugins installed:
Then: copy the right chatfilter.smx and chatfilter.cfg...
Copy the chatfilter.smx into your SourceMod 'plugins' directory.
At last, put the chatfilter.cfg into the 'configs' directory. Take a look inside the chatfilter.cfg and modify it to your needs!

The config file:
Spoiler


Download

sneaK 10-01-2016 18:38

Re: [ANY] Universal Chat Filter (Version 0.9.6, 2016-10-01)
 
Think you forgot to attach the files or link the download :P

almostagreatcoder 10-01-2016 18:39

Re: [ANY] Universal Chat Filter (Version 0.9.6, 2016-10-01)
 
Quote:

Originally Posted by blackhawk74 (Post 2458430)
Think you forgot to attach the files or link the download :P

Well, you were just too fast for me! :wink:

shavit 10-01-2016 23:56

Re: [ANY] Universal Chat Filter (Version 0.9.6, 2016-10-01)
 
you might want to support Chat-Processor instead: https://forums.alliedmods.net/showthread.php?t=286913

almostagreatcoder 10-02-2016 06:28

Re: [ANY] Universal Chat Filter (Version 0.9.6, 2016-10-01)
 
Quote:

Originally Posted by shavit (Post 2458465)
you might want to support Chat-Processor instead: https://forums.alliedmods.net/showthread.php?t=286913

Okay, I added a new version that supports redwerewolf's plugin now. The only thing I could not figure out is replacing or modifying a player display name. The Chat-Processor does definitely work different here than the Simple Chat Processor and it took me far too long to look into this... :(

Anyway - at least all the other features work, which is still something! :up:

Have fun!

alerad 10-02-2016 06:55

Re: [ANY] Universal Chat Filter (Version 0.9.7, 2016-10-02)
 
Does color flow work on csgo?

Either ways, GREAT job :D

almostagreatcoder 10-02-2016 07:02

Re: [ANY] Universal Chat Filter (Version 0.9.7, 2016-10-02)
 
Quote:

Originally Posted by alerad (Post 2458542)
Does color flow work on csgo?

Either ways, GREAT job :D

I don't think so. I cannot test it myself, but as far as I know CSGO does not support any custom colors in the chat.

And thanks! :)

almostagreatcoder 10-04-2016 14:15

Re: [ANY] Universal Chat Filter (Version 0.9.8, 2016-10-04)
 
I just uploaded a new version 0.9.8! There has been an error with color flows in conjunction with UTF8 characters. This is solved now.

Have fun! :)

almostagreatcoder 10-05-2016 03:41

Re: [ANY] Universal Chat Filter (Version 0.9.9, 2016-10-05)
 
...aaand here we go with version 0.9.9! There still was an error in the regex checking loop, that left the plugin sometimes without function. Now everything is neat and shiny again. :D

Sw33T3R 10-05-2016 07:45

Re: [ANY] Universal Chat Filter (Version 0.9.9, 2016-10-05)
 
Hi
How can i hide a ! chat trigger?
I want only hide !menu


All times are GMT -4. The time now is 19:04.

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