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

Hiding Chat Triggers


Post New Thread Reply   
 
Thread Tools Display Modes
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 04-05-2012 , 11:03   Re: Hiding Chat Triggers
Reply With Quote #11

I wonder if using the SimpleChatProcessor, one could enum a list of commands and have them not show up, even if they are public chat triggers, but still let the command execute... just thinking out loud.
__________________
View my Plugins | Donate
TnTSCS is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 04-05-2012 , 11:21   Re: Hiding Chat Triggers
Reply With Quote #12

Quote:
Originally Posted by Doodil View Post
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
If you're using AddCommandListener on say and say_team for !commands and /commands, I would certainly hope that approvers suggest you change it before approval (and dump it to Unapproved if you refuse).
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 04-05-2012 at 11:23.
Powerlord 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 13:44.


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