Raised This Month: $ Target: $400
 0% 

emit_sound


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
karlos
Veteran Member
Join Date: Apr 2004
Location: Germany/Poland
Old 09-17-2004 , 17:19  
Reply With Quote #2

found a way for 1)
a)
just use
#define SND_STOP (1<<5)
emit_sound(id, CHAN_STREAM, "xyz.wav", 0.0, ATTN_NORM, SND_STOP, PITCH_NORM)

b)
when player connects i check every second until his gametime is bigger zero (can be done with a constant time but when player connects too long it wont work)
then when player is in game i use emit_sound(id, CHAN_STREAM, "xyz.wav"...)
it is important to have in first call of emit_sound CHAN_STREAM and in this one too, otherwise there can be multiple wavs played at once (very annoying)

now i need only help with 2)
__________________
alias White Panther
karlos 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 17:15.


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