Raised This Month: $12 Target: $400
 3% 

No Chat Spam by Exolent


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   General Purpose        Approver:   Emp` (115)
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-17-2009 , 23:33   No Chat Spam by Exolent
Reply With Quote #1

No Chat Spam
Version 0.6.1
by Exolent


Introduction:

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 <positive integer>
  • The maximum number of times a player can say the same message before it is blocked.
  • Default: 3
antispam_minlen <positive integer>
  • 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 <seconds>
  • 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

Changelog:
  • Version 0.6.1
    - Minor fix from v0.6 update
  • Version 0.6
    - Fixed antispam.ini only working for slash commands
  • Version 0.5
    - Fixed error when reading file.
  • Version 0.4
    - Added compatability with normal chat commands such as /me, timeleft, etc.
  • Version 0.3
    - Minor bug fix.
  • Version 0.2
    - Fixed few typos.
    - Added antispam_slash cvar.
    - Added better compatability with adminchat.amxx
  • Version 0.1
    - Initial Release

Credits:
  • joaquimandrade
    - Helped me with bits and pieces of the plugin.
Attached Files
File Type: ini antispam.ini (781 Bytes, 5667 views)
File Type: sma Get Plugin or Get Source (anti_chat_spam.sma - 5144 views - 5.2 KB)
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!

Last edited by Exolent[jNr]; 08-08-2011 at 13:34. Reason: Updated to v0.6.1
Exolent[jNr] is offline
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 04-17-2009 , 23:35   Re: No Chat Spam by Exolent
Reply With Quote #2

First. Very nice Insolent[jNr]
__________________
joaquimandrade is offline
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 04-17-2009 , 23:35   Re: No Chat Spam by Exolent
Reply With Quote #3

GJ Exolent
__________________
alan_el_more is offline
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 04-17-2009 , 23:37   Re: No Chat Spam by Exolent
Reply With Quote #4

Good Job, But check if user have ADMIN_CHAT when you check message[0] == '@', Because if you arent admin the msg show. WithOut Restriction.
__________________
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 04-17-2009 , 23:37   Re: No Chat Spam by Exolent
Reply With Quote #5

For those who are unaware off, this plugin blocks every kind of repeated text. So, if a guy come to your server spamming a message binded to a key he is promptly stopped. Any message.
__________________
joaquimandrade is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-18-2009 , 00:03   Re: No Chat Spam by Exolent
Reply With Quote #6

Changelog:
  • Version 0.3
    - Minor bug fix.
  • Version 0.2
    - Fixed few typos.
    - Added antispam_slash cvar.
    - Added better compatability with adminchat.amxx
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!

Last edited by Exolent[jNr]; 04-18-2009 at 12:57.
Exolent[jNr] is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 04-18-2009 , 00:42   Re: No Chat Spam by Exolent
Reply With Quote #7

Interesting .
__________________
fysiks is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-18-2009 , 01:46   Re: No Chat Spam by Exolent
Reply With Quote #8

Sexy !
Arkshine is offline
Anggara_nothing
Veteran Member
Join Date: Jan 2009
Location: Indonesia
Old 04-18-2009 , 01:52   Re: No Chat Spam by Exolent
Reply With Quote #9

the plugin is nice.
Anggara_nothing is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 04-18-2009 , 02:46   Re: No Chat Spam by Exolent
Reply With Quote #10

wow, well done exolent
__________________
xPaw 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 06:32.


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