Raised This Month: $ Target: $400
 0% 

how to play a sound so everyone hear?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
[X]-RayCat
Senior Member
Join Date: Sep 2006
Old 06-08-2009 , 16:50   Re: how to play a sound so everyone hear?
Reply With Quote #1

Quote:
Originally Posted by xPaw View Post
Looping is useless here use this 1
PHP Code:
#include <amxmodx>

new const g_screamsound[] = "misc/scream_dir/scream";

public 
plugin_init() {
    
register_clcmd("scream""play_it"ADMIN_KICK)
}


public 
plugin_precache(){
    
precache_sound(g_screamsound)
}


public 
play_it(id){
    if( 
get_user_flagsid ) & ADMIN_KICK )
        
client_cmd(0"spk %s"g_screamsound)
    
    return 
PLUGIN_HANDLED

Im not suggesting to use 0 as index sound can get horrible. I used 0 in my hide n seek countdown and it got really loud. (Use looping instead)
__________________

Last edited by [X]-RayCat; 06-08-2009 at 16:53.
[X]-RayCat is offline
Jon
Veteran Member
Join Date: Dec 2007
Old 06-08-2009 , 18:22   Re: how to play a sound so everyone hear?
Reply With Quote #2

Quote:
Originally Posted by [X]-RayCat View Post
Im not suggesting to use 0 as index sound can get horrible. I used 0 in my hide n seek countdown and it got really loud. (Use looping instead)
How does that make sense? The volume is dependent of client settings?
Jon is offline
[X]-RayCat
Senior Member
Join Date: Sep 2006
Old 06-08-2009 , 19:19   Re: how to play a sound so everyone hear?
Reply With Quote #3

Quote:
Originally Posted by Jon View Post
How does that make sense? The volume is dependent of client settings?
Somehow it sounds louder. Anyways you don't wanna hear it.
__________________
[X]-RayCat is offline
Reply


Thread Tools
Display Modes

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 23:35.


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