Restrict Chat Spam Plugin for AmxModx

Description
This plugin disables chat spamming in a different way that usual. Others limit the delay between each chat message. This plugin disallows the same message to be said by the same person more than X times.
If the same message is said more than X times by one person, then that person cannot say that message anymore.



Cvars:

antispam_enabled <0|1>
  • Turns plugin on/off
  • - 0 = Disabled
  • - 1 = Enabled
  • Default: 1 

  • antispam_samecount 


    • The maximum number of times a player can say the same message before it is blocked.
    • Default: 3
    antispam_minlen 
    • The minimum length of a message for it to be considered spam.
    • This is intended to rule out commonly used acronyms such as "lol", "omg", etc.
    • Note: Spaces before and after the message are not counted for.
    • Default: 6
    antispam_warndelay 
    • Delay between "Stop spamming messages!" warning message is shown to player.
    • Default: 1.5
    antispam_slash <0|1|2>
    • If your server has slash commands for chat, then you should use 1 or 2.
    • - 0 = Disabled
    • - 1 = Slash for normal chat
    • - 2 = Slash for normal and team chat
    • Default: 0

    Adding Non-Admin Chat Commands:

    Attached to this post, there is a file called antispam.ini.
    Open that file and there are instructions on how to use it.
    When you are finished, place it in your server's addons/amxmodx/configs folder.

    Requirements:

    - AMX Mod X 1.8.1 or higher.


    Download
    antispam.ini (781 Bytes)
    Get Plugin or Get Source (anti_chat_spam.sma 4.7 Kb)

    1 comments:

    Unknown said...

    i need Stop spamming messages plz help mee :'(

    Post a Comment