RSSy MYGO.pl Opublikowano Styczeń 1, 2019 o 02:03 RSSy Udostępnij Opublikowano Styczeń 1, 2019 o 02:03 Description Filters chat and player names based off regular expressions read from config file Feature List Blocks chat messages that match regex and notifies admins via chat Logs all chat blocks to logs/cf.log file Blocks players from connecting if their name matches regex ConVars cf_filter_chat - Filter chat messages? 1 - Yes, 0 - No. (Default: 1) cf_filter_name - Filter player names? 1 - Yes, 0 - No. (Default: 1) cf_notify_admins - Notify admins upon chat block? 1 - Yes, 0 - No. (Default: 1) Change Log 12-31-2018 Initial release Installation Download chat-filter.zip file Move everything in the plugins folder to your own addons/sourcemod/plugins folder Move everything in the configs folder inside your addons/sourcemod/configs folder You're done! Configuring Config Files In the expressions.cfg file, each regular expression should be on a new line In the whitelist.cfg file each whitelisted word should be on a new line (note: these are words and phrases, not regex expressions) For Developers (Include file) Code: /** * Retrieves the client index of the warden * * @param source string to macth regex patterns to * @param buffer optional buffer to store matched pattern in source * @param maxlen optional length of buffer * @param notify if true, will notify admins and player of matched regex * @param client client to notify if notify is true * @return True if source matched to existing regex patterns. */ native bool CF_CheckString(const char[] source, char[] buffer = "", int maxlen = 0, bool notify = false, int client = 0); Attached Files chat-filter.zip (12.1 KB) Wyświetl pełny artykuł 1 Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Jokersik Opublikowano Marzec 13, 2019 o 17:29 Udostępnij Opublikowano Marzec 13, 2019 o 17:29 Zaloguj się lub zarejestruj aby zobaczyć zawartość. 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ę