Raised This Month: $52 Target: $400
 13% 

[ANY] Simple Filters 1.0.6 (Sourcebans++ support)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
FAQU
Member
Join Date: Sep 2020
Location: Romania
Plugin ID:
7457
Plugin Version:
1.0.6
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    This plugin provides customizable chat and name filters (can be used as an anti-advertising solution)
    Old 01-09-2021 , 08:48   [ANY] Simple Filters 1.0.6 (Sourcebans++ support)
    Reply With Quote #1

    Simple Filters 1.0.6 (now with Sourcebans++ support)

    Description
    Quote:
    Customizable chat and name filters which allow you to do the following:

    -Block chat messages if they contain specified bad words (can be configured to also Kick/Ban the player)
    -Block chat messages if they contain IP addresses (can be configured to also Kick/Ban the player)
    -Block chat messages if they contain weird symbols / custom fonts
    -Remove/replace specified bad words from players names
    -Remove/replace IP addresses from players names
    -Remove weird symbols / custom fonts from players names
    -Rename players with names too short
    -Hide commands from chat (ex: !admin)
    -Hide name change notifications from chat

    Initially developed as an anti-advertising solution, but can be used for other purposes as well.

    Supported games
    Quote:
    -Developed and tested with CSGO but should work in pretty much all games
    -Confirmed working in L4D2

    ConVars
    PHP Code:
    Config file automatically generated --> cfg/sourcemod/Simple-Filters.cfg

    // Ban duration in minutes (0 = permanent)
    // -
    // Default: "1440"
    simple_chat_banduration "1440"

    // Method of banning player (0 = SteamID only / 1 = IP only / 2 = SteamID + IP)
    // -
    // Default: "0"
    simple_chat_banmethod "0"

    // Block chat messages if they contain symbols/custom fonts (0 = Disabled / 1 = Enabled)
    // -
    // Default: "1"
    simple_chat_blocksymbols "1"

    // Enable the usage of chat filters (0 = Disabled / 1 = Enabled)
    // -
    // Default: "1"
    simple_chat_filters "1"

    // Hide chat commands - ex. !admin (0 = Disabled / 1 = Enabled)
    // -
    // Default: "1"
    simple_chat_hidecommands "1"

    // Hide 'player changed name' messages from chat (0 = Disabled / 1 = Enabled)
    // -
    // Default: "1"
    simple_chat_hidenamechange "1"

    // Enable the usage of chat IP filters (0 = Disabled / 1 = Enabled)
    // -
    // Default: "1"
    simple_chat_ipfilters "1"

    // How to punish the player if message contains bad word / IP address (0 = Block message / 1 = Kick player / 2 = Ban Player)
    // -
    // Default: "0"
    simple_chat_punishment "0"

    // Enable the usage of name filters (0 = Disabled / 1 = Enabled)
    // -
    // Default: "1"
    simple_name_filters "1"

    // Enable the usage of name IP filters (0 = Disabled / 1 = Enabled)
    // -
    // Default: "1"
    simple_name_ipfilters "1"

    // Remove symbols/custom fonts from player's name (0 = Disabled / 1 = Enabled)
    // -
    // Default: "1"
    simple_name_removesymbols "1"

    // Replacement word for name filters (Empty = just remove bad words/IPs)
    // -
    // Default: ""
    simple_name_replacement ""

    // Rename players into 'Player #userid' if their name is too short (0 = Disabled / 1 = Enabled)
    // -
    // Default: "1"
    simple_name_tooshort "1"

    // Enable the usage of global IP whitelist (0 = Disabled / 1 = Enabled)
    // -
    // Default: "0"
    simple_whitelist "0" 

    Commands
    PHP Code:
    sm_chatfilters   // Prints a list of currently loaded chat filters - Requires root flag
    sm_namefilters   // Prints a list of currently loaded name filters - Requires root flag
    sm_whitelist   // Prints a list of currently whitelisted IP addresses - Requires root flag
    sm_reloadfilters   // Reloads chat and name filters - Requires root flag 

    Changelog
    Quote:
    Version 1.0.6
    -Added option to rename players with names too short
    -Further code optimizations

    Version 1.0.5
    -General code improvements
    -Likely some performance improvements
    -Fixed some unwanted behavior

    Version 1.0.4
    -Improved Sourcebans++ support.
    -Improved code readability.
    -Fixed a few small issues.

    Version 1.0.3
    -Improved the way filters are read from files.
    -Bans will go through Sourcebans++ if available.
    -You can now choose your preferred method of banning. (SteamID / IP / Both)
    -New feature: hide name change notifications from chat.
    -Changed command sm_ipwhitelist into sm_whitelist.

    Version 1.0.2
    -Added whitelist for IP addresses

    Version 1.0.1
    -You can now choose a global replacement word for name filters

    Version 1.0
    -Initial release

    Github Download - click here
    __________________

    Last edited by FAQU; 02-24-2021 at 01:48.
    FAQU is offline
    penalte
    Member
    Join Date: Jan 2016
    Old 01-09-2021 , 20:41   Re: [ANY?] Simple Filters 1.0
    Reply With Quote #2

    just what i needed thanks, can you add the option to replace with a custom word of choise?
    penalte is offline
    digin
    Member
    Join Date: Nov 2019
    Old 01-09-2021 , 21:53   Re: [ANY?] Simple Filters 1.0
    Reply With Quote #3

    thanks so useful
    digin is offline
    pribekerik
    AlliedModders Donor
    Join Date: Apr 2018
    Old 01-10-2021 , 00:04   Re: [ANY?] Simple Filters 1.0
    Reply With Quote #4

    whitelist for own server ips?
    pribekerik is offline
    FAQU
    Member
    Join Date: Sep 2020
    Location: Romania
    Old 01-10-2021 , 00:30   Re: [ANY?] Simple Filters 1.0.1
    Reply With Quote #5

    Updated to 1.0.1
    - You can now choose a global replacement word for name filters
    __________________
    FAQU is offline
    FAQU
    Member
    Join Date: Sep 2020
    Location: Romania
    Old 01-10-2021 , 00:32   Re: [ANY?] Simple Filters 1.0
    Reply With Quote #6

    Quote:
    Originally Posted by pribekerik View Post
    whitelist for own server ips?
    Sounds like a good ideea. I'll add that in the future.

    Edit: Updated plugin to 1.0.2 - now it has a whitelist for IP addresses.
    __________________

    Last edited by FAQU; 01-10-2021 at 04:06.
    FAQU is offline
    foon
    Member
    Join Date: Dec 2018
    Old 01-10-2021 , 21:46   Re: [ANY?] Simple Filters 1.0.2
    Reply With Quote #7

    having a setting to run a command when a word is detected could be useful (so you could sm_gag/sm_mute/sm_silence etc)
    foon is offline
    Sajmooooon
    Senior Member
    Join Date: Nov 2018
    Location: Slovakia
    Old 01-11-2021 , 17:36   Re: [ANY?] Simple Filters 1.0.2
    Reply With Quote #8

    Hi, can you add there sourcebans bans instead of game bans ?
    Sajmooooon is offline
    FAQU
    Member
    Join Date: Sep 2020
    Location: Romania
    Old 01-12-2021 , 00:01   Re: [ANY?] Simple Filters 1.0.2
    Reply With Quote #9

    Quote:
    Originally Posted by Sajmooooon View Post
    Hi, can you add there sourcebans bans instead of game bans ?
    Let me know if this works. Since I'm not using sourcebans++ I can't really test it myself.

    If it's working, version 1.0.3 will include an option for bans to go through sourcebans++.
    Attached Files
    File Type: sp Get Plugin or Get Source (simple-filters-sbpp.sp - 34 views - 14.5 KB)
    __________________
    FAQU is offline
    Sajmooooon
    Senior Member
    Join Date: Nov 2018
    Location: Slovakia
    Old 01-12-2021 , 06:54   Re: [ANY?] Simple Filters 1.0.2
    Reply With Quote #10

    Quote:
    Originally Posted by FAQU View Post
    Let me know if this works. Since I'm not using sourcebans++ I can't really test it myself.

    If it's working, version 1.0.3 will include an option for bans to go through sourcebans++.
    Hi, thanks for your fast work. It works but only ban steam_id it doesn't include player ip in that ban.
    Sajmooooon is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


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


    Powered by vBulletin®
    Copyright ©2000 - 2021, vBulletin Solutions, Inc.
    Theme made by Freecode