I'm actually kind of wondering why this method won't work:
PHP Code:
new Float:SoundTimer[33]
set_task(0.01,"My_0.01_settask",0,"",0,"b")
public client_putinserver(id)
SoundTimer[id]=halflife_time()
public My_0.01_settask(id)
{
if(SoundTimer[id]-halflife_time()>1.0)
{
emit_sound(id,CHAN_ITEM,"mysoundloop.wav",1.0,ATTN_NORM,0,PITCH_NORM)
SoundTimer[id]=halflife_time()
}
}
I could possibly try to mimic having it timed, since theoretically it should go through this task 10 times each sound play, so I could just keep track of it that way, but I'm not sure if that's where the problem is or not.
__________________