Raised This Month: $ Target: $400
 0% 

[HELP] emit_sound


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
4554
Senior Member
Join Date: Aug 2009
Old 08-19-2009 , 06:43   [HELP] emit_sound
Reply With Quote #1

Who can help me fix the code?
PHP Code:
public emitsound(idchannelsample[])
{
 if(!
is_user_alive(id) || !is_user_connected(id)) 
  return 
FMRES_IGNORED
 
new temp[2], weapon get_user_weapon(idtemp[0], temp[1])
 if(
weapon == CSW_M3)
 {
   if(
equal(sample,"weapons/m3-1.wav")) 
   {
    
emit_sound(idCHAN_WEAPON"weapons/sadsd-1.wav"0.8ATTN_NORM0PITCH_NORM)
    return 
FMRES_SUPERCEDE
   
}
   if(
equal(sample,"weapons/m3_pump.wav")) 
   {
    
emit_sound(idCHAN_WEAPON"weapons/sadsd_draw.wav"1.0ATTN_NORM0PITCH_NORM)
    return 
FMRES_SUPERCEDE
   
}
   if(
equal(sample,"weapons/m3_insertshell.wav")) 
   {
    
emit_sound(idCHAN_WEAPON"weapons/sadsd.wav"1.0ATTN_NORM0PITCH_NORM)
    return 
FMRES_SUPERCEDE
   
}
  }
 return 
FMRES_IGNORED

I want to change m3 sound but fire sound not work, help +k
4554 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 15:03.


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