Raised This Month: $ Target: $400
 0% 

omg i don't undersand this


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Nightfall1
Senior Member
Join Date: Aug 2008
Old 06-10-2010 , 05:21   omg i don't undersand this
Reply With Quote #1

frist code
PHP Code:
public fw_TakeDamage(victiminflictorattackerFloat:damagedamagebits)
{

    new 
attacker
    
new weapon get_user_weapon(attacker)
    if (
weapon == CSW_DEAGLE)
    {
        
SetHamParamFloat(4damage get_pcvar_num(toggle_dmg))
    }
        
    return 
HAM_IGNORED;

Next try....
PHP Code:
public fw_TakeDamage(victiminflictorattackerFloat:damagedamagebits)
{  
    if (
get_user_weapon(attacker) == CSW_DEAGLE)
    {
        
SetHamParamFloat(4damage get_pcvar_float(toggle_dmg))
        return 
HAM_IGNORED;
    }
    return 
HAM_IGNORED;

Friend Code
PHP Code:
public fw_TakeDamage(victiminflictorattackerFloat:damagedamagebits)
{  
    if (
get_user_weapon(attacker) == CSW_DEAGLE)
    {
        
SetHamParamFloat(4, ( damage *= get_pcvar_floattoggle_dmg ) ) )
        return 
HAM_IGNORED;
    }
    return 
HAM_IGNORED;


DMG NOT WORK
HELP MY

__________________
SIGNATURE

Last edited by Nightfall1; 06-10-2010 at 05:38.
Nightfall1 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 05:24.


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