Raised This Month: $ Target: $400
 0% 

Help [Sounds for take and kill]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
MouseSplash!
Veteran Member
Join Date: Dec 2009
Location: En Tu Mente!
Old 01-31-2010 , 02:29   Help [Sounds for take and kill]
Reply With Quote #1

PHP Code:
public FwdTakeDamage(victiminflictorattackerFloat:damagedamage_bits)
{  
    switch(
get_user_team(attacker))
    {
        case 
1:
        {
            
SoundsTake[victim] = 1
        
}
        case 
2:
        {
            
SoundsTake[victim] = 1
        
}
    }
    return 
HAM_HANDLED
}


public 
fw_Killed(victimattackershouldgib)
{
    if(
get_user_team(attacker) == 1
    {
    
SoundsKill[victim] = 1    
    
}
    return 
HAM_HANDLED
}

public 
Fwd_EmitSound(idchannel, const sample[], Float:volumeFloat:attnflagspitch)
{
    if(
SoundsKill[id])
    {
        switch (
random_num(12))
        {
            case 
1engfunc(EngFunc_EmitSoundidchanneldeadct1volumeattnflagspitch)
            case 
2engfunc(EngFunc_EmitSoundidchanneldeadct2volumeattnflagspitch)
        }
    }
    
    if(
SoundsTake[id])
    {
        switch(
get_user_team(id))
        {
            case 
1:
            {
                switch (
random_num(13))
                {
                    case 
1engfunc(EngFunc_EmitSoundidchanneltaket1volumeattnflagspitch)
                    case 
2engfunc(EngFunc_EmitSoundidchanneltaket2volumeattnflagspitch)
                    case 
3engfunc(EngFunc_EmitSoundidchanneltaket3volumeattnflagspitch)
                }
            }
            
            case 
2:
            {
                switch (
random_num(13))
                {
                    case 
1engfunc(EngFunc_EmitSoundidchanneltakect1volumeattnflagspitch)
                    case 
2engfunc(EngFunc_EmitSoundidchanneltakect2volumeattnflagspitch)
                    case 
3engfunc(EngFunc_EmitSoundidchanneltakect3volumeattnflagspitch)
                }
            }
        }
    }
    return 
FMRES_IGNORED;

MouseSplash! is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 01-31-2010 , 03:02   Re: Help [Sounds for take and kill]
Reply With Quote #2

The problem is?
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
MouseSplash!
Veteran Member
Join Date: Dec 2009
Location: En Tu Mente!
Old 01-31-2010 , 03:04   Re: Help [Sounds for take and kill]
Reply With Quote #3

Quote:
Originally Posted by wrecked_ View Post
The problem is?
dont work the sounds
MouseSplash! is offline
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 07:18.


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