Raised This Month: $32 Target: $400
 8% 

Sound Blocker 1.2


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Server Management        Approver:   Hawk552 (427)
Jon
Veteran Member
Join Date: Dec 2007
Old 09-21-2009 , 16:04   Sound Blocker 1.2
Reply With Quote #1

Sound Blocker


Description


This plugin allows you to block networked sounds by adding them to a configuration file. You can't block client side sounds such as weapon sounds (except for the knife). The config file allows you to block specific sounds for certain maps, or on all maps.


Usage

Place blockedsounds.ini in your configs directory. Add sounds like in the example. Use the "[all]" tag to block sounds on all maps.

Code:
// Sounds under this tag will always be blocked
[all] 
common/wpn_denyselect.wav

// All sounds under this tag are blocked on cs_italy
[cs_italy] 
ambience/Opera.wav 


Credits


Plugin was inspired by USE Sound Blocker by 3Di

Attached Files
File Type: ini blockedsounds.ini (103 Bytes, 918 views)
File Type: sma Get Plugin or Get Source (soundblocker.sma - 2006 views - 1.7 KB)

Last edited by Jon; 11-08-2009 at 18:17.
Jon is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-21-2009 , 16:13   Re: Sound Blocker v1.0 by Jon
Reply With Quote #2

Nothing to say. Well just minor thing like "trim()" should be done before the check and you should add '//' as comment too.
__________________
Arkshine is offline
3Di
Member
Join Date: Sep 2009
Location: #php_title
Old 09-21-2009 , 16:16   Re: Sound Blocker v1.0 by Jon
Reply With Quote #3

I'm hoping this plugin doesn't make an approver unapprove my plugin already submitted.

On another note, good plugin.
3Di is offline
Jon
Veteran Member
Join Date: Dec 2007
Old 09-21-2009 , 16:26   Re: Sound Blocker v1.0 by Jon
Reply With Quote #4

Quote:
Originally Posted by Arkshine View Post
Nothing to say.
You must be ill.

Ontopic: other things added.

Quote:
Originally Posted by 3Di View Post
I'm hoping this plugin doesn't make an approver unapprove my plugin already submitted.

On another note, good plugin.
Thanks.
Jon is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-21-2009 , 16:41   Re: Sound Blocker v1.0 by Jon
Reply With Quote #5

EmitSound is not only used for players but also for ents (e.g. weapons).
You forgot fclose().
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Sp3rMiNaToR
BANNED
Join Date: Apr 2009
Location: Greece ^_^
Old 09-21-2009 , 16:44   Re: Sound Blocker v1.0 by Jon
Reply With Quote #6

You are kidding me,right?I had EXACTLY the same idea,i made a plugin like this(not so well-written ofc) and i was planning to release it tomorrow!I also took the idea from this:
Quote:
Plugin was inspired by USE Sound Blocker by 3Di
Are you in my mind?Anyway,good job!

Last edited by Sp3rMiNaToR; 09-21-2009 at 16:48.
Sp3rMiNaToR is offline
Send a message via MSN to Sp3rMiNaToR
Jon
Veteran Member
Join Date: Dec 2007
Old 09-21-2009 , 16:51   Re: Sound Blocker v1.1 by Jon
Reply With Quote #7

Quote:
Originally Posted by ConnorMcLeod View Post
EmitSound is not only used for players but also for ents (e.g. weapons).
You forgot fclose().
Yes, you're right. Corrections made.

Quote:
Originally Posted by Sp3rMiNaToR View Post
You are kidding me,right?I had EXACTLY the same idea,i made a plugin like this(not so well-written ofc) and i was planning to release it tomorrow!I also took the idea from this:Are you in my mind?Anyway,good job!
Thanks.
Jon is offline
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 09-21-2009 , 17:39   Re: Sound Blocker v1.1 by Jon
Reply With Quote #8

http://forums.alliedmods.net/showpos...1&postcount=12

Yeee, like i said.... rly good plugin man, ofc i will use it and.... i will learn some things with the code of this plugin.
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
Jon
Veteran Member
Join Date: Dec 2007
Old 09-21-2009 , 17:46   Re: Sound Blocker v1.1 by Jon
Reply With Quote #9

Quote:
Originally Posted by Alucard^ View Post
http://forums.alliedmods.net/showpos...1&postcount=12

Yeee, like i said.... rly good plugin man, ofc i will use it and.... i will learn some things with the code of this plugin.
Oh, didn't know you had the idea too. Anyway, thanks.
Jon is offline
Debesėlis
Senior Member
Join Date: Aug 2008
Location: Lithuania
Old 09-22-2009 , 05:37   Re: Sound Blocker v1.1 by Jon
Reply With Quote #10

When I click E in console write
http://img14.**************/img14/3653/imgxe.png
Debesėlis 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:02.


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