Raised This Month: $ Target: $400
 0% 

damagebits & DMG_HEGRENADE


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

Shoot = get Xp
Knife attack = get xp
He grenade = nothing

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;
}

weplausss 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 03:21.


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