Raised This Month: $ Target: $400
 0% 

Hiding Chat Triggers


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ReFlexPoison
☠☠☠
Join Date: Jul 2011
Location: ☠☠☠
Old 04-05-2012 , 00:14   Hiding Chat Triggers
Reply With Quote #1

I asked this in another post for Deluxe Godmode.

A user told me that in order to do this, it would require a change to the main basechat scripting.

Anyway, what I want to do is block curtain chat triggers like in Deluxe Godmode, !god for showing up in chat. It gets a little overwhelming to go through logs and to see what people are saying in chat when all I see is !god !god !god...

I've seen other plugins do it, however they scripted differently.

Is there a way to hide these chat triggers?

Last edited by ReFlexPoison; 04-05-2012 at 01:11.
ReFlexPoison is offline
necavi
Veteran Member
Join Date: Sep 2010
Old 04-05-2012 , 00:40   Re: Hiding Chat Triggers
Reply With Quote #2

They can simply use /god, instead of !god, or you could switch the triggers, make !god hidden and /god show up. This can be done with a simple sourcemod configuration change.
necavi is offline
ReFlexPoison
☠☠☠
Join Date: Jul 2011
Location: ☠☠☠
Old 04-05-2012 , 01:07   Re: Hiding Chat Triggers
Reply With Quote #3

Quote:
Originally Posted by necavi View Post
They can simply use /god, instead of !god, or you could switch the triggers, make !god hidden and /god show up. This can be done with a simple sourcemod configuration change.
May I ask what the configuration change is? I don't see anything in the sourcemod.cfg that does something like that.
ReFlexPoison is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 04-05-2012 , 01:19   Re: Hiding Chat Triggers
Reply With Quote #4

not in the sourcemod configs... it's in one of the cfgs in the sourcemod/configs folder... core.cfg or something
__________________
View my Plugins | Donate
TnTSCS is offline
uncivil
Junior Member
Join Date: Aug 2009
Old 04-05-2012 , 01:20   Re: Hiding Chat Triggers
Reply With Quote #5

addons/sourcemod/configs/core.cfg
uncivil is offline
ReFlexPoison
☠☠☠
Join Date: Jul 2011
Location: ☠☠☠
Old 04-05-2012 , 01:34   Re: Hiding Chat Triggers
Reply With Quote #6

So what one of these should do it?

Code:
/**
 * String to use as the public chat trigger.  Set an empty string to disable.
 */

"SilentFailSuppress"	"no"
to
"SilentFailSuppress"	"yes"
Code:
/**
 * String to use as the silent chat trigger.  Set an empty string to disable.
 */

"PublicChatTrigger"		"!"
to
"PublicChatTrigger"		"/"
Code:
/**
 * If a say command is a silent chat trigger, and is used by an admin, 
 * but it does not evaluate to an actual command, it will be displayed 
 * publicly.  This setting allows you to suppress accidental typings.
 *
 * The default value is "no".  A value of "yes" will supress.
 */

"SilentChatTrigger"		"/"
to
"SilentChatTrigger"		"!"

Last edited by ReFlexPoison; 04-05-2012 at 01:36.
ReFlexPoison is offline
Doodil
Senior Member
Join Date: Mar 2012
Old 04-05-2012 , 02:13   Re: Hiding Chat Triggers
Reply With Quote #7

Code:
/**
     * String to use as the public chat trigger.  Set an empty string to disable.
     */
    "PublicChatTrigger"        "/"
    
    /**
     * String to use as the silent chat trigger.  Set an empty string to disable.
     */
    "SilentChatTrigger"        "!"
    
    /**
     * If a say command is a silent chat trigger, and is used by an admin, 
     * but it does not evaluate to an actual command, it will be displayed 
     * publicly.  This setting allows you to suppress accidental typings.
     *
     * The default value is "no".  A value of "yes" will supress.
     */
    "SilentFailSuppress"    "no"
would make "/vip" appear in chat for everyone and "!vip" not appear. I guess there is no way to set two SilentChatTriggers without editing the .sp
Doodil is offline
necavi
Veteran Member
Join Date: Sep 2010
Old 04-05-2012 , 02:13   Re: Hiding Chat Triggers
Reply With Quote #8

Precisely!
necavi is offline
ReFlexPoison
☠☠☠
Join Date: Jul 2011
Location: ☠☠☠
Old 04-05-2012 , 02:17   Re: Hiding Chat Triggers
Reply With Quote #9

Quote:
Originally Posted by Doodil View Post
would make "/vip" appear in chat for everyone and "!vip" not appear. I guess there is no way to set two SilentChatTriggers without editing the .sp
Well like I said, I found plugins that scripted differently. I got the VIP plugin to hide, but no luck for the God Mode plugin. I guess I'll try more research and try some new configs.

to you Doodil
ReFlexPoison is offline
Doodil
Senior Member
Join Date: Mar 2012
Old 04-05-2012 , 02:25   Re: Hiding Chat Triggers
Reply With Quote #10

yea because there are 2 ways to recognize commands, you can either use "RegConsoleCmd"/"RegAdminCmd", which would then use the chat triggers out of the core.cfg or you can use "AddCommandListener" for say/say_team and then check for the command-string and eventually block that one from showing up.

For the first one you can just change the core.cfg like above, for the 2nd one you have to manually edit the source of every plugin that uses that method
Doodil 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 18:33.


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