RSSy MYGO.pl Opublikowano Październik 1, 2016 o 22:33 RSSy Udostępnij Opublikowano Październik 1, 2016 o 22:33 Universal Chat Filter (Version 0.9.6, 2016-10-01) A universal chat filter plugin using regular expressions. You can trigger text replacements, name replacements, colors, 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.Needs the Simple Chat Processor (Redux) plugin! Which you can find here: https://forums.alliedmods.net/showthread.php?p=1820365Features 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. Flexible replacements -> choose whether to block a chat entry completely 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: Sound replacement options -> you can even play sounds as a replacement or as a part of it! Trigger actions -> use the penalty point system to trigger any server command at (almost) any point. 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. 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) InstallationFirst: Install the Simple Chat Processor (Redux) plugin by minimoney1! https://forums.alliedmods.net/showthread.php?p=1820365 Then copy the chatfilter.smx into your SourceMod 'plugins' directory and 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 As for now, just take a look into the file I provided with this plugin. Pretty much is described in the comments. I will publish a detailed description here later... Download Wyświetl pełny artykuł Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi
Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto
Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.
Zarejestruj nowe konto
Załóż nowe konto. To bardzo proste!
Zarejestruj sięZaloguj się
Posiadasz już konto? Zaloguj się poniżej.
Zaloguj się