how to play a sound so everyone hear?
Hello,
How do you do for example Admin types "scream" in console server plays sound - Scream VERY loud so that all players will hear it . |
Re: how to play a sound so everyone hear?
Something like this:
PHP Code:
|
Re: how to play a sound so everyone hear?
¨shouldn't
PHP Code:
PHP Code:
and do i have to add .wav after scream in the g_screamsound? |
Re: how to play a sound so everyone hear?
If you use register_concmd, then you will be able to use that command also in server console, but if you want admins to be able to use it while they are in game, register_clcmd is enough.
|
Re: how to play a sound so everyone hear?
Thank you,
Another question, how do you do so that if a player died it will play the scream sound?? |
Re: how to play a sound so everyone hear?
Hook player death and call play_it function from there.
Also the code I pasted plays sound to everyone with same volume, but there is also a way to play sound somewhere in map, so if player dies in some place, other players will hear the sound coming from that place (if they are close enough). You need to use emit_sound() function for that. http://www.amxmodx.org/funcwiki.php?go=func&id=282 |
Re: how to play a sound so everyone hear?
can you give an example`?
|
Re: how to play a sound so everyone hear?
|
Re: how to play a sound so everyone hear?
Looping is useless here use this 1
PHP Code:
|
Re: how to play a sound so everyone hear?
the sound isn't being played :S
|
| All times are GMT -4. The time now is 23:34. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.