Raised This Month: $ Target: $400
 0% 

AddCommandListener on server_message


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
HelpMe
Senior Member
Join Date: Jun 2013
Location: Home
Old 07-28-2017 , 20:13   AddCommandListener on server_message
Reply With Quote #1

Hey! I would like to add a listener that checks for server messages like: Setting CBaseEntity to non-brush model and then stop it from showing.

I was thinking I could use AddCommandListener and this https://wiki.alliedmods.net/Generic_...server_message event. Then check "the message text" and see if it matches and if it do, then stop it.
HelpMe is offline
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 07-28-2017 , 23:44   Re: AddCommandListener on server_message
Reply With Quote #2

Do you mean events? https://wiki.alliedmods.net/Events_(SourceMod_Scripting)
__________________
retired
shavit is offline
HelpMe
Senior Member
Join Date: Jun 2013
Location: Home
Old 07-29-2017 , 04:20   Re: AddCommandListener on server_message
Reply With Quote #3

I don't know if you can prevent a message with a hook. I think it's a listener
HelpMe is offline
Fyren
FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren
Join Date: Feb 2106
Old 07-29-2017 , 05:44   Re: AddCommandListener on server_message
Reply With Quote #4

You will probably need to use an extension to be able to suppress that message as blocking commands or events likely won't help at all. There are a couple extensions around (Cleaner, PTaH) that try to let you filter console messages, but I don't know of any that are stable and maintained.

Last edited by Fyren; 07-29-2017 at 05:45.
Fyren is offline
ambn
Veteran Member
Join Date: Feb 2015
Location: Fun servers
Old 07-29-2017 , 14:28   Re: AddCommandListener on server_message
Reply With Quote #5

Quote:
Originally Posted by Fyren View Post
You will probably need to use an extension to be able to suppress that message as blocking commands or events likely won't help at all. There are a couple extensions around (Cleaner, PTaH) that try to let you filter console messages, but I don't know of any that are stable and maintained.
As he mentioned, just use PTaH to hook console output for both Server-Side & Client-Side.
__________________
ambn 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:01.


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