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 |
Re: Swear Replacement
I'd suggest a cvar to turn on or off the changename functionality.
|
Re: Swear Replacement
Good idea...Ill add that for the next version =D
|
Re: Swear Replacement
1 Attachment(s)
Here is a Turkish badwords.txt :)
|
Re: Swear Replacement
Thanks Shaman. I added most of the words to the list and updated the attached file =D
|
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) |
Re: Swear Replacement
Yeah that makes sense. That would be pretty easy to do to. Ill add it for the next version.
|
Re: Swear Replacement
/me hugs you
|
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 |
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 |
Re: Swear Replacement/Filter with Insurgency Support!
Im confused....so you want to replace a specific word with a specific other word?
|
Re: Swear Replacement/Filter with Insurgency Support!
Quote:
EXACTLY :mrgreen: |
Re: Swear Replacement/Filter with Insurgency Support!
I play in a DODS server, cantaloupe island, and they have that already.
Say fag, it gets replaced with hamham Say n-word, it gets replaced with grandma I have been trying to find out how they do it. This plugin is the closest thing I can find, but it doesn't quite do it. |
Re: Swear Replacement/Filter with Insurgency Support!
they might use eventscripts of the sort!
I have done it with eventscripts before, its really easy as its like writing a simple if statement, alone the lines of a batch script! |
Re: Swear Replacement/Filter with Insurgency Support!
this plugin freezes my server dods linux latest vertion of sm
|
Re: Swear Replacement/Filter with Insurgency Support!
Any errors? Does it freeze it at server start or when you say something? A little more info would be helpful next time.
|
Re: Swear Replacement/Filter with Insurgency Support!
Im sorry was a busy day yesterday my bad
I would say it freezes when someone says something because when i look in console it is still up but i cant type anything in console I must ctrl C to close the server. It runs fine without this plugin here is the plugins im running metamod 19:55:34 SourceMod Version Information: SourceMod Version: 1.0.0.1268 JIT Version: JIT (x86), 1.0.0.1172 JIT Settings: Generic i686 http://www.sourcemod.net/ sm 19:55:34 SourceMod Version Information: SourceMod Version: 1.0.0.1268 JIT Version: JIT (x86), 1.0.0.1172 JIT Settings: Generic i686 http://www.sourcemod.net/ 19:51:12 [SM] Listing 15 plugins: 01 "Nextmap" (1.0.0.1268) by AlliedModders LLC 02 "Admin File Reader" (1.0.0.1268) by AlliedModders LLC 03 "HLstatsX Plugin" (1.2) by Tobi17 04 "Basic Info Triggers" (1.0.0.1268) by AlliedModders LLC 05 "Anti-Flood" (1.0.0.1268) by AlliedModders LLC 06 "Mapchooser" (1.3) by ferret 07 "RockTheVote" (1.4) by ferret 08 "Weapon Logging" (1.2) by Tobi17 09 "SMF Admins" (1.0.0.0) by devicenull 10 "Ads" (1.0.2.0) by Shane A. ^BuGs^ Froebel 11 "Basic Commands" (1.0.0.1268) by AlliedModders LLC 12 "Basic Fun Commands" (1.0.0.1268) by AlliedModders LLC 13 "Admin Help" (1.0.0.1268) by AlliedModders LLC 14 "Basic Chat" (1.0.0.1268) by AlliedModders LLC 15 "Reserved Slots" (1.0.0.1268) by AlliedModders LLC |
Re: Swear Replacement/Filter with Insurgency Support!
Try updating your SourceMod installation.
|
Re: Swear Replacement/Filter with Insurgency Support!
same result :(
23:01:22 SourceMod Version Information: SourceMod Version: 1.0.0.1310 JIT Version: JIT (x86), 1.0.0.1172 JIT Settings: Generic i686 http://www.sourcemod.net/ |
Re: Swear Replacement/Filter with Insurgency Support!
it freezes when someone post empty message to chat, not empty but just ine space in it. after ayu user type " " in chat server fully frezes
|
Re: Swear Replacement/Filter with Insurgency Support!
don't work at my server...
win32 (sm 1404) 11:12:17 [SM] Listing 34 plugins: 01 "Admin File Reader" (1.0.0.1404) by AlliedModders LLC 02 "Admin Help" (1.0.0.1404) by AlliedModders LLC 03 "Admin Sounds" (1.0) by dalto 04 "Admin loggin" (1.0) by vIr-Dan 05 "Ads" (1.0.2.0) by Shane A. ^BuGs^ Froebel 06 "Advanced c4 Countdown Timer" (1.4) by dalto 07 "Advanced Chat" (1.1) by ferret 08 "Anti-Flood" (1.0.0.1404) by AlliedModders LLC 09 "Advanced Team Attack Control" (1.3.3) by FlyingMongoose 10 "Basic Chat" (1.0.0.1404) by AlliedModders LLC 11 "Basic Commands" (1.0.0.1404) by AlliedModders LLC 12 "Basic Fun Commands" (1.0.0.1404) by AlliedModders LLC 13 "Basic Fun Votes" (1.0.0.1404) by AlliedModders LLC 14 "Basic Info Triggers" (1.0.0.1404) by AlliedModders LLC 15 "Basic Votes" (1.0.0.1404) by AlliedModders LLC 16 "Bounty" (1.0.9.0) by Shane A. ^BuGs^ Froebel, FlyingMongoose, and stoic 17 "Cvar Hider" (1.0.0.0) by AlliedModders LLC 18 "HLstatsX Plugin" (1.3) by Tobi17 19 "Mapchooser" (1.3) by ferret 20 "Nextmap" (1.0.0.1404) by AlliedModders LLC 21 "Quake Sounds" (1.8) by dalto 22 "RateChecker" (0.2) by pRED* 23 "Reserved Slots" (1.0.0.1404) by AlliedModders LLC 24 "RockTheVote" (1.4) by ferret 25 "Client Execute" (1.0.0.3) by dubbeh 26 "Spec for Cash" (1.0.1.0) by Shane A. ^BuGs^ Froebel 27 "Swear Replacement" (1.1) by Hell Phoenix 28 "Terms Agreement" (1.1) by MaTTe 29 "VM VoteBan" (1.0) by ferret 30 "VMgr Core" (0.8) by ferret 31 "VM VoteKick" (1.0) by ferret 32 "VM VoteMap" (1.0) by ferret 33 "Weapon Logging" (1.3) by Tobi17 34 "YeGods High Ping Remover" (1.0.0.4) by dubbeh |
Re: Swear Replacement/Filter with Insurgency Support!
Quote:
|
Re: Swear Replacement/Filter with Insurgency Support!
Hell Phoenix it would be nice to implement ban or kick feature and trigger how many times someone used swearword.
In example we have a trigger 2. When player uses two times swearword it can be kicked or banned from server for sometime. |
Re: Swear Replacement/Filter with Insurgency Support!
my mistake: all works good...
|
Re: Swear Replacement/Filter with Insurgency Support!
Quote:
|
Re: Swear Replacement/Filter with Insurgency Support!
Cause you have a lot of people typing in a space? I am working on other projects also and dont have time to do it right now. Sorry. Maybe next week.
|
Re: Swear Replacement/Filter with Insurgency Support!
Quote:
Actualy i got message from one of players about that bug - before i even can't understand why that happens. |
Re: Swear Replacement/Filter
This should be fixed in the new version of sourcemod. Please update it.
|
Re: Swear Replacement/Filter
Getting this in logs:
Quote:
|
Re: Swear Replacement/Filter
Thanks for letting me know. I noticed that the other day too and completely forgot about it. Whoops ;)
|
Re: Swear Replacement/Filter
2 Hell Phoenix: please add a config file to plugin (for all plugin's variables)
|
Re: Swear Replacement/Filter
New Version:
1.2 * Fixed some errors from the console/log The errors I fixed dont directly apply to yours Falco, but I have a funny feeling its caused by the same thing. Let me know if you still have them after the new version. |
Re: Swear Replacement/Filter
Nice work! =)
Please add an autocreation of config file (for all plugin's cvars) feature to mod =). |
Re: Swear Replacement/Filter
Its not really needed, you can just put them in your sourcemod.cfg file.
|
Re: Swear Replacement/Filter
Thanks, I will give it a workout.
|
Re: Swear Replacement/Filter
OMG...
Version 1.2 KILLED all my servers (i install it today) ! All servers instantly crashing if players try to use a chat. Remove plugin stops crushing. |
Re: Swear Replacement/Filter
Hell Phoenix it would be nice to implement ban or kick feature and trigger how many times someone used swearword.
In example we have a trigger 2. When player uses two times swearword it can be kicked or banned from server for sometime. |
Re: Swear Replacement/Filter
Server crash also
Quote:
|
Re: Swear Replacement/Filter
Im really embarassed about that. Sorry. Its funny how an = sign can crash an entire server...lol. Seriously. So without further ado 1.3 has been released and fully tested against crashes ;)
|
Re: Swear Replacement/Filter
10x!
=) will test it tonight... (at Moscow night now =)) ) |
All times are GMT -4. The time now is 18:03. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.