OnPlayerGiveDamage
#2

Code:
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid, bodypart)
{
new Float:Health;
GetPlayerHealth(damagedid, Heath);
}
Situation:

I have 100 HP. Somebody shoot my with deagle and i have to lose 46 HP. When Callback will be called, health will be 100 or 54 (that, because 100-46).
Reply


Messages In This Thread
OnPlayerGiveDamage - by audriuxxx - 17.05.2014, 11:38
Re: OnPlayerGiveDamage - by audriuxxx - 17.05.2014, 12:35
Re: OnPlayerGiveDamage - by Abagail - 17.05.2014, 12:47
Re: OnPlayerGiveDamage - by audriuxxx - 17.05.2014, 12:58
Re: OnPlayerGiveDamage - by audriuxxx - 17.05.2014, 15:39

Forum Jump:


Users browsing this thread: 1 Guest(s)