Raised This Month: $ Target: $400
 0% 

how to make the faldamage divided by 2 in this code?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
cs1.7
Senior Member
Join Date: Oct 2008
Old 03-16-2010 , 04:22   how to make the faldamage divided by 2 in this code?
Reply With Quote #1

if player suffers from falldamage, i want his falldamage to be divided by 2 (falldamage/2)

PHP Code:
public FwdHamPlayerDamageididInflictoridAttackerFloat:flDamageiDamageBits ) {
    if( 
iDamageBits DMG_FALL )
        if( 
get_gametime() < g_fProtectTime[id])
        return 
HAM_SUPERCEDE;
    return 
HAM_IGNORED;

__________________
_____________
/_____\
[° ||| °]
./..............\▓
cs1.7 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 08:38.


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