Raised This Month: $ Target: $400
 0% 

Swear Replacement/Filter


Post New Thread Reply   
 
Thread Tools Display Modes
GunSpeed
Member
Join Date: Oct 2010
Old 10-01-2011 , 13:47   Re: Swear Replacement/Filter
Reply With Quote #131

Ok, you forgot the swear_replacement.sp script
addons\sourcemod\scripting

http://forums.alliedmods.net/attachm...8&d=1191191730

and the replacements.txt file too, if you want funny replies *I personally don't recommend it, spams the server instead of shutting their mouth*
addons\sourcemod\configs
http://forums.alliedmods.net/attachm...9&d=1183738499

Last edited by GunSpeed; 10-01-2011 at 13:51.
GunSpeed is offline
T1k3
Junior Member
Join Date: Jul 2011
Old 10-02-2011 , 03:19   Re: Swear Replacement/Filter
Reply With Quote #132

Oh, thank you very much for help. I really forgot the *.sp file. (I use "sm_swear_replace_mode 3".)
Now working but:
- Typing for example: "ass", "fuck", "f u c k" etc. - "Please do not use foul language here!"
- Typing for example: "noob", "anyád", "twat" etc. - Nothing.
Attached Files
File Type: txt badwords.txt (5.8 KB, 398 views)
T1k3 is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 10-02-2011 , 10:53   Re: Swear Replacement/Filter
Reply With Quote #133

maybe instead of

; hungarian
; =========

use

// hungarian
// =========

I'm not sure though, just brainstorming
TnTSCS is offline
T1k3
Junior Member
Join Date: Jul 2011
Old 10-02-2011 , 15:32   Re: Swear Replacement/Filter
Reply With Quote #134

Thank you, but I tried it without any comments. I don't know what is wrong.

Last edited by T1k3; 10-04-2011 at 03:45.
T1k3 is offline
Dyl0n
Member
Join Date: Oct 2011
Old 02-24-2012 , 09:52   Re: Swear Replacement/Filter
Reply With Quote #135

I may be wrong.. but I think it is broken after these last few updates.

O_O
Dyl0n is offline
Calystos
Member
Join Date: Jan 2011
Location: Terra
Old 02-24-2012 , 10:11   Re: Swear Replacement/Filter
Reply With Quote #136

I've managed to fix it, least it works now on Nuclear Dawn.

I've updated it somewhat too. Am trying to add an optional ALL CAPS filter too. Works when swearing found, but not quite with normal chat yet, lol.

The caps code was duped from the dontshout plugin, which didn't work but the shout code did so merged it into this one with plans on updating it an fixing both to work as a chat filter,

1.5
* Fixed ReplaceString empty string error
* Added option to ignore team chat filtering
* Added option to filter ALL CAPS chat
* Using colors.inc to display team based colored chat
* Added SPEC/DEAD output to say chat to make it look legit
1.5.1
* Added autoconfig system
EDIT: Forgot to add the Auto Config bit, lol.

EDIT: My bad, forgot to upload a compiled build since it now uses colors include. (Have also attached that too)

UPDATED 26th February 2011
1.5.2
* Added ALL CAPS chat filter for both swear filtered chat & non-swear normal chat
Attached Files
File Type: inc colors.inc (11.5 KB, 211 views)
File Type: sp Get Plugin or Get Source (swear_replacement.sp - 310 views - 16.7 KB)
File Type: smx swear_replacement.smx (12.1 KB, 291 views)

Last edited by Calystos; 02-26-2012 at 12:07.
Calystos is offline
Send a message via ICQ to Calystos Send a message via AIM to Calystos Send a message via MSN to Calystos Send a message via Yahoo to Calystos Send a message via Skype™ to Calystos
niask1
Junior Member
Join Date: Dec 2010
Location: Kaluga, Russia
Old 05-17-2012 , 04:44   Re: Swear Replacement/Filter
Reply With Quote #137

Quote:
Originally Posted by Calystos View Post
UPDATED 26th February 2011
1.5.2
* Added ALL CAPS chat filter for both swear filtered chat & non-swear normal chat
Thanks for your update!
niask1 is offline
RavensBro
Veteran Member
Join Date: Sep 2009
Location: Wisonsin USA
Old 12-18-2012 , 13:37   Re: Swear Replacement/Filter
Reply With Quote #138

L 12/17/2012 - 21:43:52: SourceMod error session started
L 12/17/2012 - 21:43:52: Info (map "vsh_spooky_ravine_b1_3") (file "errors_20121217.log")
L 12/17/2012 - 21:43:52: [SM] Native "GetClientTeam" reported: Client 4 is not in game
L 12/17/2012 - 21:43:52: [SM] Displaying call stack trace for plugin "swear_replacement.smx":
L 12/17/2012 - 21:43:52: [SM] [0] Line 353, swear_replacement.sp::Command_TeamSay()
L 12/17/2012 - 21:53:03: Error log file session closed.
L 12/17/2012 - 22:01:57: SourceMod error session started
L 12/17/2012 - 22:01:57: Info (map "vsh_hakurei_winter") (file "errors_20121217.log")
L 12/17/2012 - 22:01:57: [SM] Native "GetClientTeam" reported: Client 6 is not in game
L 12/17/2012 - 22:01:57: [SM] Displaying call stack trace for plugin "swear_replacement.smx":
L 12/17/2012 - 22:01:57: [SM] [0] Line 389, swear_replacement.sp::Command_TeamSay()
L 12/17/2012 - 22:25:08: Error log file session closed.
RavensBro is offline
Bittersweet
Veteran Member
Join Date: May 2012
Old 02-05-2013 , 23:26   Re: Swear Replacement/Filter
Reply With Quote #139

This plugin has been throwing errors for days, but much more intense now:

Code:
L 02/05/2013 - 18:51:19: [SM] Plugin encountered error 15: Array index is out of bounds
L 02/05/2013 - 18:51:19: [SM] Displaying call stack trace for plugin "swear_replacement.smx":
L 02/05/2013 - 18:51:19: [SM]   [0]  Line 163, /home/groups/alliedmodders/forums/files/3/7/6/4/17848.attach::OnClientSettingsChanged()
This error is being thrown so often that I think it may ne enough to lag my server. I can't go through all of them, but I've found at least one that the above sequence was repeated 14 times within the same second according to the timestamp.
__________________
Thank you in advance for your help

My plugins:
[CS:S] BOT Swat | [ANY] CVAR Randomizer | [CS:S] SM CS:S Tag Beta | [CS:S] Bot2Player
Awesome & Crucial plugins by other people:
[CS:S/CS:GO] GunGame | [UMC3] Ultimate Mapchooser | [ANY] Server Crontab | [ANY] SM ForceCamera

Last edited by Bittersweet; 02-05-2013 at 23:29. Reason: correction
Bittersweet is offline
Bittersweet
Veteran Member
Join Date: May 2012
Old 02-07-2013 , 16:03   Re: Swear Replacement/Filter
Reply With Quote #140

Quote:
Originally Posted by Calystos View Post
I've managed to fix it, least it works now on Nuclear Dawn.

I've updated it somewhat too. Am trying to add an optional ALL CAPS filter too. Works when swearing found, but not quite with normal chat yet, lol.

The caps code was duped from the dontshout plugin, which didn't work but the shout code did so merged it into this one with plans on updating it an fixing both to work as a chat filter,

1.5
* Fixed ReplaceString empty string error
* Added option to ignore team chat filtering
* Added option to filter ALL CAPS chat
* Using colors.inc to display team based colored chat
* Added SPEC/DEAD output to say chat to make it look legit
1.5.1
* Added autoconfig system
EDIT: Forgot to add the Auto Config bit, lol.

EDIT: My bad, forgot to upload a compiled build since it now uses colors include. (Have also attached that too)

UPDATED 26th February 2011
1.5.2
* Added ALL CAPS chat filter for both swear filtered chat & non-swear normal chat
This version works. Too bad it's buried in the middle of a thread
__________________
Thank you in advance for your help

My plugins:
[CS:S] BOT Swat | [ANY] CVAR Randomizer | [CS:S] SM CS:S Tag Beta | [CS:S] Bot2Player
Awesome & Crucial plugins by other people:
[CS:S/CS:GO] GunGame | [UMC3] Ultimate Mapchooser | [ANY] Server Crontab | [ANY] SM ForceCamera
Bittersweet is offline
Reply



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 07:20.


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