Raised This Month: $ Target: $400
 0% 

Trying to change 2 emit sound


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ironskillz1
AlliedModders Donor
Join Date: Jul 2012
Location: Sweden
Old 08-06-2013 , 06:03   Re: Trying to change 2 emit sound
Reply With Quote #1

Quote:
Originally Posted by akcaliberg View Post
You can't change weapons' sounds except knife.
You can change the he_bounce sound
__________________
I have many private and unique plugins for Jailbreak and Hide'N'Seek. PM me for more info.

Pm me.

Check out my roulette site.
ironskillz1 is offline
Send a message via Skype™ to ironskillz1
MrKiller2010
Senior Member
Join Date: Aug 2012
Old 08-06-2013 , 06:17   Re: Trying to change 2 emit sound
Reply With Quote #2

Quote:
Originally Posted by ironskillz1 View Post
You can change the he_bounce sound
This is what i use:

PHP Code:
if(!is_user_alive(id)) 
        return 
FMRES_IGNORED
    
    
new temp[2], weapon get_user_weapon(idtemp[0], temp[1])
    if(
weapon == CSW_KNIFE)
    {
        if(
g_iCurrentGame == GAME_BOXING)
        {
            if(
equal(sample,"weapons/knife_hit1.wav")) 
            {
                
emit_sound(idCHAN_WEAPON"bknuckles/knife_hit1.wav"1.0ATTN_NORM0PITCH_NORM)
            }
            else if(
equal(sample,"weapons/knife_hit2.wav")) 
            {
                
emit_sound(idCHAN_WEAPON"bknuckles/knife_hit2.wav"1.0ATTN_NORM0PITCH_NORM)  
            }
            else if(
equal(sample,"weapons/knife_hit3.wav")) 
            {
                
emit_sound(idCHAN_WEAPON"bknuckles/knife_hit3.wav"1.0ATTN_NORM0PITCH_NORM)  
            }
            else if(
equal(sample,"weapons/knife_hit4.wav")) 
            {
                
emit_sound(idCHAN_WEAPON"bknuckles/knife_hit4.wav"1.0ATTN_NORM0PITCH_NORM)
            }
            else if(
equal(sample,"weapons/knife_stab.wav")) 
            {
                
emit_sound(idCHAN_WEAPON"bknuckles/knife_stab.wav"1.0ATTN_NORM0PITCH_NORM)  
            }
            
            return 
FMRES_SUPERCEDE
        
}
    }
    
    return 
FMRES_IGNORED 
MrKiller2010 is offline
ironskillz1
AlliedModders Donor
Join Date: Jul 2012
Location: Sweden
Old 08-06-2013 , 06:39   Re: Trying to change 2 emit sound
Reply With Quote #3

Both sound Changes work when i dont combine them.
But when i combine them (He_bounce and knife sound)

The server goes to shit
__________________
I have many private and unique plugins for Jailbreak and Hide'N'Seek. PM me for more info.

Pm me.

Check out my roulette site.
ironskillz1 is offline
Send a message via Skype™ to ironskillz1
Reply



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:49.


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