Recommend A Language Filter + Autoban ?
razblack
Join Date: 2003-03-26 Member: 14896Members
<div class="IPBDescription">plugin or dll for windows platform</div> I am running a windows server and am trying to find a flexible language 'control' plugin with banning / kicking / and warning features.
Filtering the output is not a requirement but would be a nice option... but logging of the violation (if you have that rule) would be important.
reqs:
1 - a language control file that has a list of keywords that are offensive
2 - a log file(s) of banned, and currently offending players (they only get so many chances b4 being banned)
3 - output of the warning to all players with the offenders name and <message>
4 - log files should have time : date : player name : wonid
5 - CVAR flexibility (or a .ini file) for plugin/.dll features and variables
Is this asking to much or do I need to start coding my own AMX ?
Thanks,
- RAZ
Filtering the output is not a requirement but would be a nice option... but logging of the violation (if you have that rule) would be important.
reqs:
1 - a language control file that has a list of keywords that are offensive
2 - a log file(s) of banned, and currently offending players (they only get so many chances b4 being banned)
3 - output of the warning to all players with the offenders name and <message>
4 - log files should have time : date : player name : wonid
5 - CVAR flexibility (or a .ini file) for plugin/.dll features and variables
Is this asking to much or do I need to start coding my own AMX ?
Thanks,
- RAZ
Comments
will log any and all bans for you
and thanks for the reply <!--emo&:D--><img src='http://www.unknownworlds.com/forums/html/emoticons/biggrin.gif' border='0' style='vertical-align:middle' alt='biggrin.gif'><!--endemo-->
Read through the descriptions on the Admin mod site for more info.
<i>Pebbs</i>
It's an adminmod plugin and it uses your words.txt file as the list of banned words.
Whenever someone swears, it gives them a warning and punishes them. The punishments get harsher as the warnings get higher. It's also "smart" and catches "creative" spellings of swearings like "s w e a r". It doesn't actually filter out the words that they're saying, but there are other plugins that do that very well indeed. If you use one of those, just be sure to put the swearfilter ABOVE the word-replacement plugin in your plugins.ini.
But wait! There's More!
You also get the following adimin commands:
admin_swear - manually warn someone for swearing when the filter doesn't catch them
admin_swear_forgive - de-incriments their warnings by one. (useful for forgiving "false positives")
admin_swear_clear - sets their warnings back to 0
admin_swear_immunize - makes the target immune to the swear filter!
That's all fine and dandy, you say... but what does it DO???
Well, let me tell you. By deafult, the first 3 times someone swears, the server will admin_slap them and count off their warnings. Warnings 4-6 are accompanied by an admin_slay, warnings 7-9 are followed up with a swift KICK off the server with a nifty explaination printed to their console. The tenth time (or more) that they swear, they get a 60 minute ban, again with a nifty explaination written to the console. In addition to banning them for 60 minutes, it writes the time, day, playername and WonID to a file called swearban.log. (On my server, it also llamas them, but I have altered my llama code to make llamism "perminant")
I hope you enjoy it as much as I do!
Here's the fixed one. My apologies.
Thanks! <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->
Also, how do we configure the sequences... ie: # of word violations before a kick, ban and so forth? Can these be setup as CVARs ?
In my particular situation, I would like to have 3 warnings, and a kick... on the last (4th violation) I want to perma-ban them (with messages and so forth)
I see several 'built-in' messages in the plugin... could those be made as CONST (constant) variables at the beginning of the .sma so as to make it easier for customized messages?
- any info is appreciated -
- RAZ
The plugin I posted has configuration options in its code. Right up at the top you get to choose how many warnings give slaps, how many give death, and how many give kicks. Anything over the kick # give bans. Near the bottom of the punishment section is the "ban 60" statement. make it ban 0 and you're permabanning.
Should the swearfilter script be placed before or after the retribution script or should the retribution script be commented out?
Thanks again!
- RAZ
snprintf(Filename,MAX_TEXT_LENGTH,"swear/%s.log", WonIDSTR);
where is the 'swear' directory suppose to be created?
also:
writefile( "Swearban.log", Text);
this file doesn't exist anywhere... i've logged in, cursed up a storm (had other players doing too disappointingly) and a few slaps got thrown around, but no bannage...
Help?
- RAZ
The swear directory hangs off the ns one... HLDS\ns\swear like that. Once it exists, it should (in theory) start populating it with files. Those files are named for your wonID, and keep track of how many times you've sworn (sweared?). Be sure that you've got file read/write turned on for admin mod as well.
This should fix all of your problems. If it can't find your file in the swear directory, it can't "remember" that you've been warned before... thus you just get slaps... which you're getting... so it's working so far. <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->
I have the swearfilter as the second adminmod plugin on my list. It's underneath sank_flood. You shouldn't have to worry about placement of your retribution file... the swear filter doesn't use it.
I'm sorry about the lack of "documentation" with this plugin. I've been doing most of my coding/posting from here at work, and I don't have access to my server here. <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->
feel free to email me about support too. petitmort at iname.com.
As a general rule, put your admin plugins in the order that they get used, with the most-used above the least used. That way AdminMod doesn't spend time mucking about through your plugin_fun or plugin_killthecheaterandrebindallofhiskeys every time someone says "nextmap".
I'd also like to give Caveman credit for a huge chunk of this plugin. I origionally based it off of his cavey_warn plugin, and adapted the living frell out of it to my own purposes... but I guess that's what "Open Source" is all about!
Thanks!
- RAZ