Raised This Month: $ Target: $400
 0% 

Need help looping sounds!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
dutchmeat
Senior Member
Join Date: Sep 2006
Old 01-15-2007 , 04:12   Re: Need help looping sounds!
Reply With Quote #2

You can't, you will have to make a function,
don't know if this is good for you, but it should work.

Code:
new soundloop[33] public plugin_init() {  register_plugin("somesoundplugin","1.0a", "Some strange guy") } public somefunction(id){  soundloop[id] = 1  sound(id)  set_task(1.0,resetloop,id) } public sound(id){ if (soundloop[id] != 1)  return PLUGIN_HANDLED emit_sound(id,CHAN_VOICE,"misc/mysound.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) sound(id) } public resetloop(id){  soundloop[id] = 0 } public plugin_precache() {      precache_sound("misc/mysound.wav")      return PLUGIN_CONTINUE }
__________________
before you criticize someone, you should walk a mile in their shoes. that way, when you criticize them, you're a mile away and you have their shoes.

Last edited by dutchmeat; 01-15-2007 at 04:20.
dutchmeat 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 22:24.


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