Raised This Month: $12 Target: $400
 3% 

Swear Replacement/Filter


Post New Thread Reply   
 
Thread Tools Display Modes
Kramerika
Senior Member
Join Date: Dec 2004
Location: PA, US of A
Old 10-09-2007 , 10:58   Re: Swear Replacement/Filter
Reply With Quote #61

Could there be an option to make it replace only the offending string with *'s and allow the rest of the text to go through? Would it be possible to distinguish between exact and loose strings? This would be useful for blocking some words that are a part of many acceptable words. Is there an option to kick someone after x number of violations?

With the bad name replacement, would it be possible to allow immunity for admins to protect certain strings for their usage only? If this could be separate from the chat filter, that would be even better so that admins could be immune to the name filter but not to the chat filter. Would it also be possible to create a command for admins to use to manually force a name change for those who are persistant in going around the name filter?

There are other plugins that handle some of this, but it would be nice if all of these functions were in the same plugin.

Last edited by Kramerika; 10-09-2007 at 11:04.
Kramerika is offline
graczu
Senior Member
Join Date: Mar 2006
Old 10-18-2007 , 08:25   Re: Swear Replacement/Filter
Reply With Quote #62

Sometimes, this plugin start banning players for any say command's.

Somone say "lol", "lol" is'nt on badwords list, and server plugin start banning players for any word they say.
__________________
graczu is offline
Hell Phoenix
Senior Member
Join Date: Jan 2005
Old 10-18-2007 , 09:54   Re: Swear Replacement/Filter
Reply With Quote #63

The plugin doesnt ban anyone...have you modded it? Also, check to make sure that your badwords file doesnt have a blank space at the end of it. There should be no carriage return after the last word.
__________________
Hell Phoenix is offline
graczu
Senior Member
Join Date: Mar 2006
Old 10-19-2007 , 13:49   Re: Swear Replacement/Filter
Reply With Quote #64

Yeap i just remove some options and added just ban for 5 min for swear.

http://paste.hopto.org/index.php?38

But i dont change any structure of plugin
__________________
graczu is offline
Hell Phoenix
Senior Member
Join Date: Jan 2005
Old 10-19-2007 , 13:50   Re: Swear Replacement/Filter
Reply With Quote #65

Its something you did then....Myself nor has anybody else complained of a problem. Sorry.
__________________
Hell Phoenix is offline
Kramerika
Senior Member
Join Date: Dec 2004
Location: PA, US of A
Old 10-19-2007 , 15:57   Re: Swear Replacement/Filter
Reply With Quote #66

What code would I need to add to make admins immune to the name part of the filter? I'd like to use this plugin as an all-in-one name and word filter but I want to be able to allow admins to be immune to the name part of it to protect a tag.
Kramerika is offline
graczu
Senior Member
Join Date: Mar 2006
Old 10-21-2007 , 20:15   Re: Swear Replacement/Filter
Reply With Quote #67

you need to add in "public Action:Command_Say(client,args){" and "public Action:Command_TeamSay(client,args){
":

Code:
		if(!(GetUserFlagBits(client) & ADMFLAG_GENERIC || GetUserFlagBits(client) & ADMFLAG_ROOT)){
after:

Code:
	if(client != 0){
and end tag:

Code:
}
before:

Code:
	return Plugin_Continue;
Good luck there gordon


edit:

in my plugin it's looking like this:

"public Action:Command_TeamSay(client,args){"

http://paste.hopto.org/index.php?44

But remember that i edit some sections of this plugin, and just add a ban on 5 min if somone swear.
__________________

Last edited by graczu; 10-21-2007 at 20:39.
graczu is offline
aakerlind
Junior Member
Join Date: Jun 2006
Old 10-22-2007 , 06:07   Re: Swear Replacement/Filter
Reply With Quote #68

this plugin also works with tf2 if anyone wants to know ;P

; swedish
; =======
fitta
kuk
hora
neger
cp
vagina
snopp
javla
jefla
fan
slyna
helvete
satan
horbarn
stfu
balle
arsel
blatte
svenne
dumfan
idiot
fuskare

Last edited by aakerlind; 10-22-2007 at 06:25. Reason: added swedish words
aakerlind is offline
Kramerika
Senior Member
Join Date: Dec 2004
Location: PA, US of A
Old 10-22-2007 , 14:08   Re: Swear Replacement/Filter
Reply With Quote #69

I have been getting this error with the plugin for a while which happens with CS:S, DoD:S, FF, and TF2, so it doesn't appear to be specific to the game nor does it seem to affect anything negatively. Just an FYI.

Code:
L 10/22/2007 - 10:54:57: SourceMod error session started
L 10/22/2007 - 10:54:57: Info (map "cp_well") (file "errors_20071022.log")
L 10/22/2007 - 10:54:57: [SM] Native "GetClientTeam" reported: Client 7 is not in game
L 10/22/2007 - 10:54:57: [SM] Debug mode is not enabled for "swear_replacement.smx"
L 10/22/2007 - 10:54:57: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 16 on
L 10/22/2007 - 11:25:07: Error log file session closed.
Kramerika is offline
graczu
Senior Member
Join Date: Mar 2006
Old 10-23-2007 , 04:57   Re: Swear Replacement/Filter
Reply With Quote #70

if somone exit when plugin start checking is that player in CT or T Team you will get this error, it's becouse player's swear and run from server.

You can fix it with adding, "sClientInGame(client)" or "IsClientConnected(client) ", good luck gordon.

You can change:

Code:
if (found)
to:

Code:
if (found && IsClientConnected(client) && IsClientInGame(client)){
__________________

Last edited by graczu; 10-23-2007 at 05:03.
graczu 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 08:09.


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