AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   Swear Replacement/Filter (https://forums.alliedmods.net/showthread.php?t=57537)

Hell Phoenix 07-06-2007 12:16

Swear Replacement/Filter
 
7 Attachment(s)
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

ferret 07-06-2007 12:42

Re: Swear Replacement
 
I'd suggest a cvar to turn on or off the changename functionality.

Hell Phoenix 07-06-2007 12:44

Re: Swear Replacement
 
Good idea...Ill add that for the next version =D

Shaman 07-06-2007 14:26

Re: Swear Replacement
 
1 Attachment(s)
Here is a Turkish badwords.txt :)

Hell Phoenix 07-06-2007 16:06

Re: Swear Replacement
 
Thanks Shaman. I added most of the words to the list and updated the attached file =D

SirCole 07-09-2007 00:27

Re: Swear Replacement
 
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)

Hell Phoenix 07-09-2007 00:35

Re: Swear Replacement
 
Yeah that makes sense. That would be pretty easy to do to. Ill add it for the next version.

SirCole 07-09-2007 00:36

Re: Swear Replacement
 
/me hugs you

Hell Phoenix 07-09-2007 19:10

Re: Swear Replacement
 
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

SirCole 07-12-2007 08:55

Re: Swear Replacement/Filter with Insurgency Support!
 
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


All times are GMT -4. The time now is 20:20.

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