Raised This Month: $ Target: $400
 0% 

Execute 'stopsound' on new round


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Rirre
Veteran Member
Join Date: Nov 2006
Old 06-23-2009 , 09:21   Execute 'stopsound' on new round
Reply With Quote #1

The title say it all.
I want to execute stopsound for everyone on new round, but i can't really fix it.
This one doesn't work.
PHP Code:
#include <amxmodx>

public plugin_init() {
    
register_plugin("Stopsound on new round","1.0","Rirre")
    
register_logevent("Event_RoundStart"2"1=Round_Start")
}

public 
Event_RoundStart(id) {
    
client_cmd(id,"stopsound")

Rirre is offline
Old 06-23-2009, 09:38
tpt
This message has been deleted by tpt. Reason: Index is a player index from 1 to 32. A zero index executes a command on all players.
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 06-23-2009 , 09:43   Re: Execute 'stopsound' on new round
Reply With Quote #2

Do you want it to be executed when the freezetime is over or when it's started?
__________________
hleV is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 06-23-2009 , 09:51   Re: Execute 'stopsound' on new round
Reply With Quote #3

Use 0 as id, and it will loop for all players.
__________________
Arkshine is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-23-2009 , 18:33   Re: Execute 'stopsound' on new round
Reply With Quote #4

stopsound is evil, I would never play on a server that forces it btw.
__________________
fysiks is offline
tpt
Member
Join Date: Jun 2009
Location: Scripting help section
Old 06-23-2009 , 19:36   Re: Execute 'stopsound' on new round
Reply With Quote #5

Quote:
Originally Posted by fysiks View Post
stopsound is evil, I would never play on a server that forces it btw.
Why is stopsound so evil? If you use stopsound only at roundstart to get rid of the background noise like in de_prodigy. Sure it will block sounds such as reloading but that isnt permanent.

Last edited by tpt; 06-23-2009 at 19:39.
tpt is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-23-2009 , 19:38   Re: Execute 'stopsound' on new round
Reply With Quote #6

Quote:
Originally Posted by tpt View Post
Why is stopsound so evil? If you use stopsound only at roundstart to get rid of the background noise like in de_prodigy. Sure it will block sounds such as reloading but thats not permanent effect.
It's my opinion, I hate using it .
__________________
fysiks is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 06-23-2009 , 19:43   Re: Execute 'stopsound' on new round
Reply With Quote #7

Quote:
Originally Posted by tpt View Post
Why is stopsound so evil? If you use stopsound only at roundstart to get rid of the background noise like in de_prodigy. Sure it will block sounds such as reloading but that isnt permanent.
Why not hook EmitSound and block the sound from playing?
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
tpt
Member
Join Date: Jun 2009
Location: Scripting help section
Old 06-23-2009 , 19:47   Re: Execute 'stopsound' on new round
Reply With Quote #8

Quote:
Originally Posted by fysiks View Post
It's my opinion, I hate using it .
Are you really listening all those annoying background sounds that maps contain? Im focused on the important sounds as footsteps etc.. Thats why i use stopsound.

Quote:
Originally Posted by Exolent[jNr] View Post
Why not hook EmitSound and block the sound from playing?
That doesn't disable from other servers. But if that's what rirre is trying to achieve i suggest him to do what you suggested.
tpt is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-23-2009 , 19:51   Re: Execute 'stopsound' on new round
Reply With Quote #9

Quote:
Originally Posted by tpt View Post
Are you really listening all those annoying background sounds that maps contain? Im focused on the important sounds as footsteps etc.. Thats why i use stopsound.
I don't think they are annoying, I like background sounds. When I did use stopsound I got that ringing in my hears like when there is no sound at all and I didn't like it.

About the footsteps, I really don't care that much. I just run out and shoot anyways , generally.
__________________
fysiks is offline
tpt
Member
Join Date: Jun 2009
Location: Scripting help section
Old 06-23-2009 , 19:59   Re: Execute 'stopsound' on new round
Reply With Quote #10

Quote:
Originally Posted by fysiks View Post
I don't think they are annoying, I like background sounds. When I did use stopsound I got that ringing in my hears like when there is no sound at all and I didn't like it.

About the footsteps, I really don't care that much. I just run out and shoot anyways , generally.
Imo thats not very clever for two reasons.

1. The opponent will here you and they're able predict your intention.
2. If you had used stopsound you would be able to hear your opponents movement.

These are my opinions after several years of clan wars ( i dont know your terms ). But if you're public player ( unlike me ) the best strategy is just run and frag.
tpt 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 15:39.


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