Skocz do zawartości

Nowy szablon forum

mygo.pl

Stworzyliśmy dla Was nowy wygląd forum. Z pewnością znajdziesz rzeczy, które wg Ciebie mogą zostać zmienione - wspomnij o tym w specjalnym wątku.

Czytaj więcej

Jak założyć własną sieć

serwerów CS

Zastanawiasz się nad prowadzeniem własnej sieci serwerów? Przeczytaj podstawowe informacje, na które należy zwrócić uwagę, przy takim projekcie.

Czytaj więcej

Tworzymy spis sieci

dodaj swoją

Dodaj sieć do której należysz, pozwoli to na promocję i budowę ogólnopolskiej bazy sieci CS.

Czytaj więcej

[CS:GO] Chat Filter (v1.1.1 12-31-18)


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
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
  1. Download chat-filter.zip file
  2. Move everything in the plugins folder to your own addons/sourcemod/plugins folder
  3. Move everything in the configs folder inside your addons/sourcemod/configs folder
  4. 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
File Type: zip chat-filter.zip (12.1 KB)

Wyświetl pełny artykuł

  • Super! 1
Odnośnik do komentarza
Udostępnij na innych stronach

  • 2 miesiące temu...

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ę
 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...