24.01.2015, 14:39
pawn Code:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
if(issuerid != INVALID_PLAYER_ID)
{
new Float:_v;
GetPlayerHealth(playerid, _v); // BEFORE
printf("BEFORE: %.4f", _v);
_v = _v-amount; // AFTER
printf("AFTER: %.4f", _v);
}
return 1;
}