Recommend A Language Filter + Autoban ?

razblackrazblack 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

Comments

  • Commander_KittensCommander_Kittens Join Date: 2003-03-03 Member: 14255Members
    edited March 2003
    <span style='color:white'><b> If you don't have anything nice to say, shut your pie hole...</span></b>
  • SuicideDogSuicideDog Join Date: 2002-11-10 Member: 8104Members
    Both <a href='http://www.amxmod.net' target='_blank'>AMX</a> and <a href='http://www.adminmod.org' target='_blank'>Adminmod</a> have serveral plugins that will, for sure, do the job for you. I use one of the AMX ones. While it does everything you want, I don't think the one I'm using has logs. I do know there is one that does do that.
  • cracker_jackmaccracker_jackmac Join Date: 2002-11-04 Member: 6891Members, Constellation, Reinforced - Shadow
    sv_logbans 1

    will log any and all bans for you
  • razblackrazblack Join Date: 2003-03-26 Member: 14896Members
    Which plugin would u recommend?

    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-->
  • Pebbles-TPFPebbles-TPF Join Date: 2002-11-11 Member: 8237Members, Constellation
    one of Sank's chat ones.

    Read through the descriptions on the Admin mod site for more info.

    <i>Pebbs</i>
  • SuicideDogSuicideDog Join Date: 2002-11-10 Member: 8104Members
    I agree the sank one is good.. and someone pretty much replicated it for AMX. I will say this now..and I'm not ashamed of it.. about 80% of AMX plugins are just AdminMod plugins converted (why fix it, if it ain't broke). AMX has some plugins that adminmod doesn't and vice versa. It's all about which you like using more. Both will be able to get want you need done. I prefer AMX personally.
  • PetitMortePetitMorte Join Date: 2002-11-06 Member: 7232Members
    This is the one I'm using on the Playpen.

    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!
  • FeydToBlackFeydToBlack Join Date: 2003-02-04 Member: 13079Members
    If you do this, please be careful. The server that i play on has some bugs. It allows you to say words such as ***, ****, ****, *****, ***, and *** to name a few. However it will not allow you to say ugly, lag, and several other (usually) non-offensive words.
  • PetitMortePetitMorte Join Date: 2002-11-06 Member: 7232Members
    Oops I did it again. I released buggy code. It's all fixed now, but still. I am shamed.

    Here's the fixed one. My apologies.
  • razblackrazblack Join Date: 2003-03-26 Member: 14896Members
    cooll... I'll try it out & send u my feedback...

    Thanks! <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->
  • razblackrazblack Join Date: 2003-03-26 Member: 14896Members
    edited April 2003
    I need some instructions to go along with your plugin... where does the words.txt file go? into the <MOD> directory?

    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
  • PetitMortePetitMorte Join Date: 2002-11-06 Member: 7232Members
    Well, the words.txt is part of adminmod. The AM setup files should tell you how to set that up and get AM configured to read it.

    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.
  • razblackrazblack Join Date: 2003-03-26 Member: 14896Members
    ok... got the 'words.txt' file thing working... one last question.

    Should the swearfilter script be placed before or after the retribution script or should the retribution script be commented out?


    Thanks again!

    - RAZ
  • razblackrazblack Join Date: 2003-03-26 Member: 14896Members
    I don't think this plugin is working properly... i've looked through the code and found where it should be creating a log file of the swearing but it doesn't seem to be getting created.

    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
  • PetitMortePetitMorte Join Date: 2002-11-06 Member: 7232Members
    Hmmm.... oddness. <!--emo&:(--><img src='http://www.unknownworlds.com/forums/html/emoticons/sad.gif' border='0' style='vertical-align:middle' alt='sad.gif'><!--endemo-->

    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!
  • razblackrazblack Join Date: 2003-03-26 Member: 14896Members
    Yay... adding that directory and of course turning ON file reading did the trick!

    Thanks!

    - RAZ
Sign In or Register to comment.