Raised This Month: $ Target: $400
 0% 

MoneyMod ( PRIVATE! ) Wont reduce falldmg?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
HBxander
Senior Member
Join Date: Jan 2011
Location: Behind you!
Old 04-27-2011 , 14:06   MoneyMod ( PRIVATE! ) Wont reduce falldmg?
Reply With Quote #1

My code:
PHP Code:
public FwdPlayerTakeDMG(iPlayerinflictorattackerFloat:damagedamagebits)
{
    
//If player is alive and the damage is done by falling
    
if(is_user_alive(iPlayer) && (damagebits DMG_FALL) )
    {
        
//If player is either ct or T
        
new CsTeams:team cs_get_user_team(iPlayer);
        if( 
team == CS_TEAM_CT || team == CS_TEAM_T 
        {    
            new 
percent ItemMaxValue FALLDMG ] * iLevel_Item iPlayer ] [ FALLDMG ] / ItemMaxLevel FALLDMG ]
            new 
Float:reduction float floatround ( ( damage float percent ) / 100.0 ), floatround_floor ) )
            
            
SetHamParamFloat 4damage reduction 
            
            
set_hudmessage(0127255, -1.0, -1.0)
            
show_hudmessage iPlayer"Fall Damage Reducer - Level %i^nInitial Damage: %.1f^nTaken Damage: %.1f^nDamage Reduced: %.1f"iLevel_Item iPlayer ] [ FALLDMG ], damagedamage reductionreduction )
        }
    }

- Its showing the Hudmessage with all correct stats, but it doesnt remove any damage s:
__________________
Selling:

- PointMod for Hide And Seek - $20
- Private BlockMaker with Weapon Block And More - $50
- Achievements ( FFA GamePlay ) - $25

PM Me about Private Work!
HBxander 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 04:31.


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