Raised This Month: $ Target: $400
 0% 

[HELP] TakeDamage


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Choose_Your_Destiny
Senior Member
Join Date: May 2011
Old 04-17-2014 , 09:08   [HELP] TakeDamage
Reply With Quote #1

PHP Code:
public FwdPlayerTakeDamage(victiminflictorattackerFloat:damagedamagetype) { 
    if(
get_user_team(attacker) != 2) {
        
SetHamParamFloat(4100.0)
    } else if(
get_user_team(attacker) != 1) {
        if(
get_user_weapon(attacker) == CSW_KNIFE) {
            if(
damagetype HIT_HEAD) {
                
SetHamParamFloat(465.0)
            } else if(
damagetype HIT_GENERIC) {
                
SetHamParamFloat(45.0)
            }
        } else if(
damagetype HIT_HEAD) {
            
SetHamParamFloat(4100.0)
        } else if(
damagetype HIT_GENERIC) {
            
SetHamParamFloat(410.0)
        }            
    }
    return 
HAM_HANDLED 

I want to make ->

T team only 100 damage
CT team to the head 65 damage, to other parts of 5 damage
CT team with all weapons to the head 100 damage, to other parts of 10 damage
__________________
I wouldn’t marry you even if you were the last woman left on earth

Choose_Your_Destiny is offline
Reply



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 06:27.


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