Raised This Month: $ Target: $400
 0% 

Sound in plugins


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Silencer123
Veteran Member
Join Date: Jul 2006
Old 10-11-2006 , 07:54   Re: Sound in plugins
Reply With Quote #2

http://www.amxmodx.org/funcwiki.php?go=func&id=282
Code:
public plugin_precache() {     precache_sound("myfolder/mysound.wav")     // = modfolder/sound/myfolder/mysound.wav     // Note that some Sounds are precached by the Game already }   public something(id) {     emit_sound(id,4,"myfolder/mysound.wav",0.7,0.8,0,100)     // Will play a Sound at the Origin of the Player with given ID. Use id 0 to play to everyone       // OR     client_cmd("play myfolder/mysound.wav")     // Plays a Sound that only this client can hear.     // You can use id 0 here, too, which is better than emit_sound with id 0, because this will have Mono effect. }
__________________
EAT YOUR VEGGIES
Silencer123 is offline
 



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 04:59.


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