This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Supress sm_play message


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Nolongerinthegame
AlliedModders Donor
Join Date: Sep 2005
Old 04-27-2012 , 14:50   Supress sm_play message
Reply With Quote #1

A simple request, if its possible to not show/suppress a message when sm_play is run via admin or through server console.

I only want this for sm_play and not other admin commands

Thanks

Last edited by Nolongerinthegame; 04-27-2012 at 14:51.
Nolongerinthegame is offline
Impact123
Veteran Member
Join Date: Oct 2011
Location: Germany
Old 04-27-2012 , 14:59   Re: Supress sm_play message
Reply With Quote #2

That should do the trick.
I've just commented out the affected lines for you.
A better way would be to edit the sm_show_activity cvar in sourcemod.cfg though.

Yours sincerely
Impact
Attached Files
File Type: sp Get Plugin or Get Source (sounds_suppressed.sp - 252 views - 3.6 KB)
__________________

Last edited by Impact123; 04-27-2012 at 15:04.
Impact123 is offline
Nolongerinthegame
AlliedModders Donor
Join Date: Sep 2005
Old 04-28-2012 , 16:48   Re: Supress sm_play message
Reply With Quote #3

Can confirm it does not work. It tells me Im playing the sound when I play it via console or ingame. A random public player can also see the message. I dont want any message to appear. This is what I meant by suppress

Last edited by Nolongerinthegame; 04-28-2012 at 16:49.
Nolongerinthegame is offline
Impact123
Veteran Member
Join Date: Oct 2011
Location: Germany
Old 04-28-2012 , 19:17   Re: Supress sm_play message
Reply With Quote #4

Then you are doing something horribly wrong.
Did you disabled the original sound.smx?

Yours sincerely
Impact
__________________
Impact123 is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 04-29-2012 , 15:14   Re: Supress sm_play message
Reply With Quote #5

Quote:
Originally Posted by Impact123 View Post
That should do the trick.
I've just commented out the affected lines for you.
A better way would be to edit the sm_show_activity cvar in sourcemod.cfg though.

Yours sincerely
Impact
All you disabled is logging, not ShowActivity2.
__________________
Dr. McKay is offline
Impact123
Veteran Member
Join Date: Oct 2011
Location: Germany
Old 04-29-2012 , 22:14   Re: Supress sm_play message
Reply With Quote #6

Quote:
Originally Posted by Dr. McKay View Post
All you disabled is logging, not ShowActivity2.
Didn't you seen the blockcomment?
Spoiler


Yours sincerely
Impact
__________________
Impact123 is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 04-30-2012 , 06:39   Re: Supress sm_play message
Reply With Quote #7

Quote:
Originally Posted by Impact123 View Post
Didn't you seen the blockcomment?
Spoiler


Yours sincerely
Impact
Oh, I missed that.
__________________
Dr. McKay is offline
Nolongerinthegame
AlliedModders Donor
Join Date: Sep 2005
Old 05-02-2012 , 12:28   Re: Supress sm_play message
Reply With Quote #8

Yes i disabled original sounds.smx and it seems to work. Thank you Impact

I'll let you know if I run into problems but seems ok so far!
Nolongerinthegame 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 21:07.


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