Raised This Month: $ Target: $400
 0% 

Double Damage don't work


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
pentakill
Member
Join Date: Oct 2014
Old 10-06-2014 , 14:26   Double Damage don't work
Reply With Quote #1

So, I have a weapons menu, and the player can choose the normal menu, gold menu and super menu

Gold menu weapons take double damage, and super take 3x damage

PHP Code:
public Damage(victiminflictorattackerFloat:damagedamagebits

    if(
is_user_connected(victim) || is_user_alive(victim))  
    { 
        if( 
get_user_weapon(attacker) == CSW_AK47 )
        {
            if (
AreGoldenAk[attacker])
            {
                
SetHamParamFloat4damage )
                return 
HAM_HANDLED
            
}
            if (
AreSuperAk[attacker])
            {
                
SetHamParamFloat4damage 3)
                return 
HAM_HANDLED
            
}
        }
    }
    return 
HAM_IGNORED

But this isn't working and I don't know why...

I use the same bools (AreGoldenAk and AreSuperAk) to change the skins and works!

Can someone help me?

Last edited by pentakill; 10-06-2014 at 14:26.
pentakill 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 17:42.


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