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

How do I filter out commands typed in chat.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
lilpetri
Member
Join Date: Nov 2016
Location: The Netherlands
Old 02-15-2017 , 14:43   How do I filter out commands typed in chat.
Reply With Quote #1

How do I filter out when someone types a command in chat?
lilpetri is offline
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 02-15-2017 , 15:45   Re: How do I filter out commands typed in chat.
Reply With Quote #2

silent chat trigger (default: '/')?
__________________

Last edited by WildCard65; 02-15-2017 at 15:45.
WildCard65 is offline
lilpetri
Member
Join Date: Nov 2016
Location: The Netherlands
Old 02-15-2017 , 16:35   Re: How do I filter out commands typed in chat.
Reply With Quote #3

yeah and "!" commands.
lilpetri is offline
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 02-15-2017 , 16:47   Re: How do I filter out commands typed in chat.
Reply With Quote #4

Quote:
Originally Posted by lilpetri View Post
yeah and "!" commands.
example of what I mean: !rcon => /rcon

commands where SM is in charge of chat trigger detection can be used by the silent trigger, what it does is when SM processes the command, it blocks message being sent to the recipients.
__________________
WildCard65 is offline
sneaK
SourceMod Moderator
Join Date: Feb 2015
Location: USA
Old 02-15-2017 , 16:51   Re: How do I filter out commands typed in chat.
Reply With Quote #5

If you're trying to block commands prefaced by ! also, use this: https://github.com/Zipcore/Timer/blo...er-hidecmds.sp

Just remove the timer include, compile, and you're good to go.
__________________
sneaK is offline
OSWO
Senior Member
Join Date: Jul 2015
Location: United Kingdom, London
Old 02-16-2017 , 02:55   Re: How do I filter out commands typed in chat.
Reply With Quote #6

I remmember sourcemod has a .cfg in the config/ folder where you can change it too.
__________________
SourceTimer | WeaponSkins++ | BasePlugins++ https://github.com/OSCAR-WOS
OSWO is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 02-16-2017 , 03:25   Re: How do I filter out commands typed in chat.
Reply With Quote #7

Yes, a recent-ish update included a change to the chat trigger options in core.cfg. Any character included within the option will function as a silent chat trigger.

Code:
	/**
	 * List of characters to use for public chat triggers.  Set an empty list to disable.
	 */
	"PublicChatTrigger"		""
	
	/**
	 * List of characters to use for silent chat triggers.  Set an empty list to disable.
	 */
	"SilentChatTrigger"		"/!"
__________________

Last edited by ddhoward; 02-16-2017 at 03:26.
ddhoward 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 10:22.


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