View Single Post
BaD CopY
Senior Member
Join Date: Oct 2014
Location: Home
Old 04-04-2015 , 13:49   Re: HE Grenade dose not take damage to owner
Reply With Quote #7

This one works fine for me

PHP Code:
public fw_HamTakeDamageiVictim iInflictor iAttacker FloatfDamage iBitDamage )
{
    if ( ( 
iVictim != iAttacker ) || !iInflictor || !( iBitDamage DMG_GRENADE ) )
    {
        return 
HAM_IGNORED;
    }
    
    new 
FloatfHealth;
    
peviVictim pev_health fHealth );
    
    return ( 
fDamage >= fHealth ) ? HAM_SUPERCEDE HAM_IGNORED;

BaD CopY is offline
Send a message via Yahoo to BaD CopY Send a message via Skype™ to BaD CopY