Raised This Month: $ Target: $400
 0% 

Double Damage don't work


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Decak
Senior Member
Join Date: Sep 2012
Old 10-06-2014 , 17:46   Re: Double Damage don't work
Reply With Quote #12

Code:
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>

new bool:AreGoldenAk[33], bool:AreSuperAk[33];

public plugin_init() {
    register_plugin("Register Name", "1.0", "Author")
    RegisterHam(Ham_TakeDamage, "player", "Damage")
}

public Damage(victim, inflictor, attacker, Float:damage, damagebits) 
{ 
    if(is_user_connected(victim) || is_user_alive(victim))  
    { 
        if( get_user_weapon(attacker) == CSW_AK47 )
        {
            if (AreGoldenAk[attacker])
            {
                SetHamParamFloat( 4, damage * 2 )
                return HAM_HANDLED
            }
            if (AreSuperAk[attacker])
            {
                SetHamParamFloat( 4, damage * 3)
                return HAM_HANDLED
            }
        }
    }
    return HAM_IGNORED
}
... add code with bool AreGoldenAk and AreSuperAk.
Decak 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