#1

In the callback OnPlayerTakeDamage. The amount of damage of armour and health is combined so can i get them seperately the amount of health and armour?
Reply
#2

Anyone?
Reply
#3

Bump
Reply
#4

umm...

if me, i will do this:

check weapon id first to detect how player got damage,
like id 54 is fall down and splat,
and else something for more exact.
if is 54 then probily is health damage.

and next just get player armour if > 0.0,
check more exact like

PHP код:
new Float:armour;
GetPlayerArmour(playeridarmour);
if(
armour 0.0)
{
    if(
armour >= amount)
    {
        
//full of Armour amount
    
}
    else
    {
        
//amount > Armour had
    
}
}
else
{
    
//health amount

but i dont know it can work or not x___x
sorry about that.
Reply
#5

Solved
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)