Raised This Month: $ Target: $400
 0% 

Ham_TakeDamage, SetHamParamFloat


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 05-10-2009 , 13:40   Ham_TakeDamage, SetHamParamFloat
Reply With Quote #1

Wtf why the damage won't multiplier?

PHP Code:
public Fw_PlayerDamaged(idinflictorattackerdamagedamagebits)
{
    if ( !(
<= attacker <= g_iMaxPlayers) )
        return 
HAM_IGNORED;
    
    if ( 
get_user_weapon(attacker) == CSW_KNIFE && PlayerClassCT[attacker] == LUKE && get_user_team(attacker) == )
    {
        
SetHamParamFloat(4damage get_pcvar_float(luke_damage))
        return 
HAM_HANDLED;
    }
    if ( 
get_user_weapon(attacker) == CSW_KNIFE && PlayerClassCT[id] == OBI_VAN && get_user_team(attacker) == )
    {
        
set_pdata_float(id1081.0)
        return 
HAM_HANDLED;
    }
    if ( 
random_num(099) < 50 && get_user_weapon(attacker) == CSW_KNIFE )
    {
        
client_print(idprint_chat"Damage!");
        
SetHamParamFloat(4damage 5.0)
        return 
HAM_HANDLED;
    }
    
    return 
HAM_IGNORED;

xbatista is offline
Send a message via Skype™ to xbatista
 



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 01:31.


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