Auto swear gag
Hello, I was wondering if anyone could take the time to modify an existing
gag plugin (like this one) or make a new one? The functions I want is to be able to write the words that there should be a punishment on in file and then if a player writes the word in-game chat, the player shall first obtain the gag for 5 minutes but if this foul language is repeated the punishment shall also be worse ... I also want this plugin to be reseted every day. So if anyone has used foul language on my game server today and got 5 min gag, he does not get 15 min gag tommorow if he uses such language but instead it will start again from 5 min. I would also appreciate if there are cvars for the diffrent levels of gag, example: Gag, Level 1 (First time 5min auto gag) Gag, Level 2 (Secound time 15 min auto gag) Gag, Level 3 (Theird time 25 min auto gag) Gag, Level 4 (...and so on...) Gag, Level 5 (...and so on...) Please help me! And sorry for my bad English. |
Re: Auto swear gag
Yes ive seen this, im also looking for this. ill see if i can find or possible script it
UPDATE https://forums.alliedmods.net/showthread.php?p=13197 This dont have ur requests but u might be able to recode it? or else just contact me pvt msg It removes all the most used swearing words. in german, nor , english , u can add ur own example swedish. |
Re: Auto swear gag
Quote:
Please someone help me with it! 2 years have passed and I am still looking for this kind of plugin :p |
Re: Auto swear gag
1 Attachment(s)
Here you go.
Customizaiton: - Change the define at the top of the plugin to not gag players - Note: Removing the gag takes away the warning cvar and times command. Pattern Sizes: - If it seems that your patterns are failing at load because they are too long, - Then open the plugin and increase the allowed pattern size at the top. Requirements: - AMX Mod X 1.8.1 or higher - RegEx module - NVault module (if you have gag enabled) Cvars: - swear_filter_warning "message" - Message shown to player first time they are found using a swear word - swear_filter_log <0|1> - 1 = logs all captured swears, 0 = don't log - swear_filter_hide_hard <0|1> - If you are using a chat plugin that replaces current chat (colored, ghost chat, etc.), then set this to 1 - Also, you would need to put this plugin at the bottom of the plugins.ini, and that chat plugin directly below it. - Otherwise, keep this as 0 Server Command: - swear_filter_times <time1> [time2] [time3] ... - Time sent to amx_gag command when player is gagged - Use 1 time to not have levels - If player reaches the maximum gag time in this list, player will be gagged at that time again if caught swearing again Logs: - All chat message caught by the filter are logged to addons/amxmodx/logs/swear_filter/YYYY-MM-DD.log - It provides the message the player type, and all the matches that were found in the filter File Setup: - File is located at addons/amxmodx/configs/swear_filters.ini - Format: Code:
; Lines starting with a ';' are comments and are ignored - If some words are being caught by the filter that shouldn't and having the filter ignore them is too much, you can add them to the white list. - The file is located at addons/amxmodx/configs/swear_whitelist.ini - The file structure should be like this: Code:
; Lines starting with a ';' are comments and are ignored http://forums.alliedmods.net/showthread.php?t=91915 (only if you have gag enabled) If you are using AMXX Gag by xPaw and myself, then you will need to be sure to set the time units to be minutes, or change your gag times accordingly. Note that if a player is gagged from the swear filter, it will not reset at the end of the day if the gag is too long. |
Re: Auto swear gag
Quote:
|
Re: Auto swear gag
Quote:
It is supposed to be used with a gag plugin. |
Re: Auto swear gag
Then it dosent work as it should.
.apa only blocks .apa and not lolapa So what could be the problem? |
Re: Auto swear gag
Quote:
It checks for words that you give it. I can modify it to work with both, give me a minute or so. |
Re: Auto swear gag
The point with regex is to have regular expressions? =D
I been looking for a plugin with regular expressions for a long time now, so if you could fix that i would be VERY happy. But if u gonna fix it, it should ONLY have regular expressions. .apa should ONLY block *apa and not apa or apalol apa should only block apa .apa. should block only lolapalol Hope u understand. :) |
Re: Auto swear gag
Updated to allow RegEx in file. See post for details.
|
All times are GMT -4. The time now is 06:38. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.