Raised This Month: $ Target: $400
 0% 

Solved dmg without killing (dmg Armor only)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 03-23-2017 , 14:46   Re: dmg without killing (dmg Armor only)
Reply With Quote #9

Why don't you test it by yourself?

As you said:

Quote:
My question: is it possible to block victim's death if the damage inflicted to the victim is greater then the victim's hp?
My code doesn't worked because I was returning HAM_IGNORED, it should be HAM_SUPERCEDE

PHP Code:
if(!(floatround(fDamage) > get_user_health(victim))) 
->

PHP Code:
if(floatround(fDamage) > get_user_health(victim))
    return 
HAM_SUPERCEDE 
And
PHP Code:
SetHamParamFloat(3100.0
It will take 100 Health Pack, not Armor Pack. I think here you must use set_user_armor()
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 03-23-2017 at 14:50.
EFFx 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 17:55.


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