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

Solved Adding automatic ban feature to swear filter plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ddag1
Member
Join Date: Apr 2020
Old 09-16-2021 , 04:05   Adding automatic ban feature to swear filter plugin
Reply With Quote #1

This is the original plugin.

Can someone please add a CVAR which would kick/ban (something like amx_filterpunishment 0/1/2) a player apart from filtering what they said? I'm actually using it to ban those trying to crash the server spamming certain messages using an alias. That's why just replacing the words feels not enough punishment for these people.

Thank you so much in advance!

Last edited by ddag1; 09-17-2021 at 07:17.
ddag1 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-16-2021 , 22:22   Re: Adding automatic ban feature to swear filter plugin
Reply With Quote #2

Try this out. Also added two other cvars: amx_filterlimit for number of times the filter is applied before getting pusnished and amx_filterbantime for the length of the ban if amx_filterpunishment is 2.
Attached Files
File Type: sma Get Plugin or Get Source (swear_replacement.sma - 80 views - 8.0 KB)
__________________
fysiks is offline
ddag1
Member
Join Date: Apr 2020
Old 09-17-2021 , 04:39   Re: Adding automatic ban feature to swear filter plugin
Reply With Quote #3

Quote:
Originally Posted by fysiks View Post
Try this out. Also added two other cvars: amx_filterlimit for number of times the filter is applied before getting pusnished and amx_filterbantime for the length of the ban if amx_filterpunishment is 2.
Awesome idea both new cvars, it works perfectly. Thank you so much!
ddag1 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 14:40.


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