Need help with damage count
#3

Quote:
Originally Posted by Norck
Посмотреть сообщение
Here you go:
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid)
{
    new Float:hp;
    GetPlayerHealth(playerid,hp);
    new Float:damage = (amount > hp) ? hp : amount;  // this is the value you need
// ...
    return 1;
}
Hope I get you right.
Thanks for giving time. I'll try it.
Reply


Messages In This Thread
Need help with damage count - by aybo - 24.12.2011, 17:30
Re: Need help with damage count - by Norck - 24.12.2011, 17:45
Re: Need help with damage count - by aybo - 24.12.2011, 17:53

Forum Jump:


Users browsing this thread: 1 Guest(s)