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

Swear Replacement/Filter


Post New Thread Reply   
 
Thread Tools Display Modes
aakerlind
Junior Member
Join Date: Jun 2006
Old 10-25-2007 , 14:06   Re: Swear Replacement/Filter
Reply With Quote #71

Quote:
Originally Posted by graczu View Post
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.
great work although when im using say from the console i get:

L 10/25/2007 - 19:55:08: [SM] Native "GetUserFlagBits" reported: Client index 0 is invalid
L 10/25/2007 - 19:55:08: [SM] Displaying call stack trace for plugin "swear_replacement.smx":
L 10/25/2007 - 19:55:08: [SM] [0] Line 174, /home/groups/sourcemod/upload_tmp/phpvGa4Br.sp::Command_Say()


which is that line, any workaround for that?
aakerlind is offline
Kramerika
Senior Member
Join Date: Dec 2004
Location: PA, US of A
Old 11-21-2007 , 08:22   Re: Swear Replacement/Filter
Reply With Quote #72

Quote:
Originally Posted by graczu View Post
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)){
I made the above edits to this plugin, but I am still getting the following error with TF2.

Quote:
L 11/20/2007 - 22:47:17: Info (map "cp_dustbowl") (file "errors_20071120.log")
L 11/20/2007 - 22:47:17: [SM] Native "GetClientTeam" reported: Client 18 is not in game
Kramerika is offline
PrefeX
Member
Join Date: Apr 2006
Location: Norway
Old 11-26-2007 , 20:58   Re: Swear Replacement/Filter
Reply With Quote #73

you should do some changes on this plugin...

firstly, you should fix it so teams and dead/alive messages get displayed only to the persons that should see it in the first place...

secondly you should apply (team)colors on the output messages...
__________________
Life would be a lot easier if I had the source code.
PrefeX is offline
dymix
New Member
Join Date: Oct 2007
Old 12-01-2007 , 10:37   Re: Swear Replacement/Filter
Reply With Quote #74

it works on counter-strike server???
dymix is offline
imported_Anth0ny
Senior Member
Join Date: Jan 2005
Location: Saturn
Old 12-01-2007 , 14:26   Re: Swear Replacement/Filter
Reply With Quote #75

please fix plugin =)
__________________
aka Mad.Eagle
Creator\Owner\Admin of
www.megatron.ws
imported_Anth0ny is offline
Send a message via ICQ to imported_Anth0ny
Noobtastic
Member
Join Date: Nov 2007
Old 12-18-2007 , 17:01   Re: Swear Replacement/Filter
Reply With Quote #76

Is it possible to exclude texts said through sm_say and sm_chat? For instance, we have the word wallhack in our list to prevent people calling others wallhackers all the time. It's visible in admin chat and sm_say, but I do get a warning to watch my language ;).
Noobtastic is offline
RaideR
Member
Join Date: Oct 2007
Location: Russia
Old 04-23-2008 , 02:39   Re: Swear Replacement/Filter
Reply With Quote #77

Hi guys!
When I try to write some bad russian word in chat , server crashes

L 04/23/2008 - 162:08: [SM] Plugin encountered error 15: Array index is out of bounds
L 04/23/2008 - 162:08: [SM] Debug mode is not enabled for "swear_replacement.smx"
L 04/23/2008 - 162:08: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 20 on

after switching on debug mode it tells:

L 04/23/2008 - 16:41:45: [SM] Plugin encountered error 15: Array index is out of bounds
L 04/23/2008 - 16:41:45: [SM] Displaying call stack trace for plugin "swear_replacement.smx":
L 04/23/2008 - 16:41:45: [SM] [0] Line 163, /home/groups/alliedmodders/forums/files/3/7/6/4/17848.attach::OnClientSettingsChanged()
L 04/23/2008 - 16:41:51: [SM] Plugin encountered error 15: Array index is out of bounds

CSS 3264
Sourcemod v.1.0.1.2090
language russian
coding of badwords.txt is UTF-8

What is wrong?

P.S. it also doesn't like my nick [AU]RaideR, changes it to smth I don't remember what and when I try to change it back, server crashes.

Please help!
__________________
Cheaters must DIE!!!

Last edited by RaideR; 04-23-2008 at 02:58.
RaideR is offline
Send a message via ICQ to RaideR
grif_ssa
BANNED
Join Date: Apr 2008
Old 05-08-2008 , 16:39   Re: Swear Replacement/Filter
Reply With Quote #78

можешь запостить плиз свой badwords.txt
grif_ssa is offline
Send a message via ICQ to grif_ssa
Lebson506th
Veteran Member
Join Date: Jul 2008
Old 07-30-2008 , 09:04   Re: Swear Replacement/Filter
Reply With Quote #79

Got this in my error logs

Code:
L 07/29/2008 - 22:44:42: [SM] Native "GetClientTeam" reported: Client 19 is not in game
L 07/29/2008 - 22:44:42: [SM] Debug mode is not enabled for "swear_replacement.smx"
L 07/29/2008 - 22:44:42: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 26 on
DoD:S OB
MM:S 1.6.2
SM 1.1.0.2427-SVN
Lebson506th is offline
{7~11} TROLL
Senior Member
Join Date: Oct 2008
Location: Atlanta,Georgia
Old 01-26-2009 , 18:09   Re: Swear Replacement/Filter
Reply With Quote #80

im getting all kinda errors on this plugin now its making my clans server go nuts

Code:
L 01/26/2009 - 17:01:49: [SM] Debug mode is not enabled for "swear_replacement.smx"
L 01/26/2009 - 17:01:49: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 32 on
L 01/26/2009 - 17:01:49: [SM] Plugin encountered error 15: Array index is out of bounds
L 01/26/2009 - 17:01:49: [SM] Debug mode is not enabled for "swear_replacement.smx"
L 01/26/2009 - 17:01:49: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 32 on
L 01/26/2009 - 17:01:49: [SM] Plugin encountered error 15: Array index is out of bounds
L 01/26/2009 - 17:01:49: [SM] Debug mode is not enabled for "swear_replacement.smx"
L 01/26/2009 - 17:01:49: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 32 on
L 01/26/2009 - 17:01:49: [SM] Plugin encountered error 15: Array index is out of bounds
L 01/26/2009 - 17:01:49: [SM] Debug mode is not enabled for "swear_replacement.smx"
L 01/26/2009 - 17:01:49: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 32 on
L 01/26/2009 - 17:01:49: [SM] Plugin encountered error 15: Array index is out of bounds
L 01/26/2009 - 17:01:49: [SM] Debug mode is not enabled for "swear_replacement.smx"
L 01/26/2009 - 17:01:49: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 32 on
L 01/26/2009 - 17:01:49: [SM] Plugin encountered error 15: Array index is out of bounds
L 01/26/2009 - 17:01:49: [SM] Debug mode is not enabled for "swear_replacement.smx"
L 01/26/2009 - 17:01:49: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 32 on
__________________
{7~11} TROLL 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 23:12.


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