Raised This Month: $ Target: $400
 0% 

[ANY] Chat Spam Punishment w/ Sourcebans++ Integration


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
Peter Brev
Member
Join Date: Aug 2023
Plugin ID:
8560
Plugin Version:
1.0.2
Plugin Category:
Server Management
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Punishes chat spammers with gag, kick or ban
    Old 10-05-2023 , 16:35   [ANY] Chat Spam Punishment w/ Sourcebans++ Integration
    Reply With Quote #1

    Chat Spam Punishment

    Description

    This plugin complements the anti chat flood feature that comes with Sourcemod. The idea behind this plugin is to stop people from...

    Spoiler


    You can choose to gag (with time, even if you do not use Sourcebans++!), kick or ban any player being naughty spammers.

    ConVars

    sm_chat_spam_punishment_version [Def. 1.0.2] - Plugin version
    sm_chat_spam_enable [Def. 1] - Enable/Disable plugin
    sm_chat_spam_punishment_threshold [Def. 8] - The maximum number of messages in a given time at which it will gag, kick or ban the player.
    sm_chat_spam_punishment_warning_enable [Def. 1] - Should the player see a warning before their impending doom.
    sm_chat_spam_punishment_warning [Def. 1] - How close to the threshold should it warn the player of an impending action. E.g. If the threshold is set to 8, then setting this cvar to 1 means that the warning will show one chat message before action is taken.
    sm_chat_spam_punishment_type [Def. 0] - Type of punishment to apply (0: gag, 1: kick, 2: ban).
    sm_chat_spam_punishment_gag_time [Def. 5] - How long to apply a gag for (time in minutes). [Use "sm_chat_spam_punishment_time_sc" if you have Sourcecomms].
    sm_chat_spam_punishment_ban_time [Def. 5] - How long to apply a ban for (time in minutes). [Use "sm_chat_spam_punishment_time_sc" if you have Sourcecomms].
    sm_chat_spam_punishment_timer [Def. 15] - The time at which the player's threshold will reset (time in seconds).

    If you use Sourcebans++:
    sm_chat_spam_punishment_time_sb [Def. 5] - How long to apply a gag or a ban (time in minutes).

    Note: sm_chat_spam_punishment_gag_time and sm_chat_spam_punishment_ban_time have no effect if Sourcebans++ is installed on your server. They are superceded by sm_chat_spam_punishment_time_sb.

    Note 2: Admins are immune.

    With the values provided here as default, it basically means that if 8 messages are sent within 15 seconds, the gag, kick or ban function will kick in. A warning (if enabled) may be displayed at 7 messages to let the player know to stop spamming. After 15 seconds, if the player has not reached the threshold, it will reset back to 0. You should never really have to worry about getting gagged, kicked or muted under normal circumstances.

    Additional information

    Plugin uses Updater by GoD-Tony. It is not required to have it for this plugin to run, but you will not have to manually update files.

    Known issues

    None that I know of. If you experience issues, let me know what happened and steps to reproduce if possible. Any screenshots/demos are welcome additions.

    To do

    Nothing.
    Attached Files
    File Type: zip [ANY] Chat Spam Punishment.zip (14.4 KB, 185 views)

    Last edited by Peter Brev; 11-23-2023 at 08:42.
    Peter Brev is offline
     



    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 23:12.


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