Raised This Month: $ Target: $400
 0% 

damagebits & DMG_HEGRENADE


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
weplausss
Member
Join Date: Mar 2010
Old 08-10-2011 , 19:07   damagebits & DMG_HEGRENADE
Reply With Quote #1

i got problem with damagebits he grenade i make code but don't work.Only
DMG_HEGRENADE does not work.What is wrong with this

PHP Code:
#define DMG_HEGRENADE  (1<<24) 
PHP Code:
RegisterHam(Ham_TakeDamage"player""ham_takedamage2",0); 
PHP Code:
public ham_takedamage2(idinflictorattackerFloat:damagedamagebits) {
if((
damagebits DMG_BULLET) || (damagebits DMG_SLASH) || (damagebits DMG_HEGRENADE)){
        
set_hudmessage(255000.450.5020.14.00.10.1, -1)
        
show_hudmessage(attacker,"+%.1f^n"damage/3)
                
iExp[attacker] += floatround(damage)/3;
}


Last edited by weplausss; 08-10-2011 at 19:16.
weplausss 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 03:21.


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