Raised This Month: $ Target: $400
 0% 

Sound in plugins


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Rolnaaba
Veteran Member
Join Date: May 2006
Old 10-11-2006 , 10:21   Re: Sound in plugins
Reply With Quote #3

for .mp3:
Code:
new MySound[] = "sounds/mysounds.mp3"   public plugin_precache() {    precache_generic(MySound) }   public functoplaysound() {   client_cmd(0, "mp3 play %s", MySound) //index as 0 will play to all people on server }   //or if you func passes an ID you can do: public func_to_play_sound(id) {    client_cmd(id, "mp3 play %s", MySound) //this will play to id func collected }
__________________
DO NOT PM me about avp mod.

Last edited by Rolnaaba; 10-11-2006 at 11:18.
Rolnaaba 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