Raised This Month: $32 Target: $400
 8% 

Swear Replacement/Filter


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Hell Phoenix
Senior Member
Join Date: Jan 2005
Plugin ID:
69
Plugin Version:
1.4
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    22 
    Plugin Description:
    Replaces or removes bad words
    Old 07-06-2007 , 12:16   Swear Replacement/Filter
    Reply With Quote #1

    Swear Replacement
    Hell Phoenix
    http://www.charliemaurice.com/plugins

    This plugin is based on kaboomkazoom's amxx swear replacement plugin. It allows you to do 3 different replacement
    modes. It also sends a warning to the user that foul language is not allowed. It also checks a players name to
    make sure that it doesnt have any bad words in it.

    Mode 1 replaces what the user said with a random phrase.
    Mode 2 shows just **** (or whatever you set the cvar to) instead of the word (filters it)
    Mode 3 doesnt display the users chat at all


    Versions:
    1.0
    * First Public Release!
    1.1
    * Added Insurgency Mod Support!
    * Added Cvar to turn off name checking
    * Added custom word replacement (use mode 2)
    * Changed Maxplayers from a define to GetMaxClients();
    * Log now only logs the original message
    * Team say now stays in the team chat instead of getting moved to global chat
    1.2
    * Fixed some errors from the console/log
    1.3
    * Fixed crashing
    1.4
    * Fixed a major loop that caused crashes sometimes (thanks Bailopan)

    Todo:

    Notes:
    The client name doesnt appear in the team color for any mod other than Insurgency. Not sure this will ever be possible
    to fix. The only thing you can do if you dont want the persons name to show up all white is to use mode 3 and not
    allow it to show at all.

    Make sure that badwords.txt and replacements.txt are in your sourcemod/configs/ directory!

    Cvarlist (default value):
    sm_swear_replace_mode 1 <1|2|3> are valid options
    sm_swear_name_check 1 <0|1> are valid options
    sm_swear_replace **** <change this to whatever string you want to replace the word if you dont want stars (for mode 2)>

    Admin Commands:
    None
    Attached Files
    File Type: sp Get Plugin or Get Source (swear_replacement.sp - 8934 views - 11.4 KB)
    File Type: txt replacements.txt (904 Bytes, 5464 views)
    File Type: txt badwords.txt (1.3 KB, 5530 views)
    __________________

    Last edited by Hell Phoenix; 09-30-2007 at 18:35.
    Hell Phoenix is offline
    ferret
    SourceMod Developer
    Join Date: Dec 2004
    Location: Atlanta, GA
    Old 07-06-2007 , 12:42   Re: Swear Replacement
    Reply With Quote #2

    I'd suggest a cvar to turn on or off the changename functionality.
    __________________
    I'm a blast from the past!
    ferret is offline
    Hell Phoenix
    Senior Member
    Join Date: Jan 2005
    Old 07-06-2007 , 12:44   Re: Swear Replacement
    Reply With Quote #3

    Good idea...Ill add that for the next version =D
    __________________
    Hell Phoenix is offline
    Shaman
    Senior Member
    Join Date: Dec 2006
    Location: Istanbul, Turkey
    Old 07-06-2007 , 14:26   Re: Swear Replacement
    Reply With Quote #4

    Here is a Turkish badwords.txt
    Attached Files
    File Type: txt badwords.txt (108 Bytes, 1193 views)
    __________________
    Shaman is offline
    Send a message via ICQ to Shaman Send a message via AIM to Shaman Send a message via MSN to Shaman Send a message via Yahoo to Shaman
    Hell Phoenix
    Senior Member
    Join Date: Jan 2005
    Old 07-06-2007 , 16:06   Re: Swear Replacement
    Reply With Quote #5

    Thanks Shaman. I added most of the words to the list and updated the attached file =D
    __________________
    Hell Phoenix is offline
    SirCole
    Member
    Join Date: Nov 2006
    Old 07-09-2007 , 00:27   Re: Swear Replacement
    Reply With Quote #6

    I haven't installed it to try it out yet, but out of interest, can you incorporate a 4th option, where you can replace someones word with another one, but its set

    for example I say:

    "ahh that guy was a fucking fag"

    and it replaces it with

    "ahh that guy was a firetrucking fag"

    so rather than having it replaced with **** or a its gets a word that I could select..

    hopefully that made sense,

    Cole

    (please excuse the foul language, you wouldn't be reading this thread if you didn't know what bad language was anyway)

    Last edited by SirCole; 07-09-2007 at 00:28. Reason: because I can :]
    SirCole is offline
    Hell Phoenix
    Senior Member
    Join Date: Jan 2005
    Old 07-09-2007 , 00:35   Re: Swear Replacement
    Reply With Quote #7

    Yeah that makes sense. That would be pretty easy to do to. Ill add it for the next version.
    __________________
    Hell Phoenix is offline
    SirCole
    Member
    Join Date: Nov 2006
    Old 07-09-2007 , 00:36   Re: Swear Replacement
    Reply With Quote #8

    /me hugs you
    SirCole is offline
    Hell Phoenix
    Senior Member
    Join Date: Jan 2005
    Old 07-09-2007 , 19:10   Re: Swear Replacement
    Reply With Quote #9

    I added a rather large update. It fixes a few things I hadnt really thought of at first. The biggest thing is that it works for Insurgency! Even colors work right =D


    Updated to 1.1
    * Added Insurgency Mod Support!
    * Added Cvar to turn off name checking
    * Added custom word replacement (use mode 2)
    * Changed Maxplayers from a define to GetMaxClients();
    * Log now only logs the original message
    * Team say now stays in the team chat instead of getting moved to global chat
    __________________
    Hell Phoenix is offline
    SirCole
    Member
    Join Date: Nov 2006
    Old 07-12-2007 , 08:55   Re: Swear Replacement/Filter with Insurgency Support!
    Reply With Quote #10

    I like the new bit about replacing the stars ****;

    I hate to sound buggy and rude, but how about having some sort of file with a string of things, where more can be added, so I say RUDEWORD and it gets replaced with oops and someone says RAHHRUDEWORD2 and it gets replaced with WHOA!

    basically saying that the *** replacement depends on what word is said.

    this although not said, will be a very popular idea, and will brings yours above anyone else who starts up a swear type of filter!

    Cole
    SirCole 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 23:54.


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