public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid)
{
new Float:Damage;
GetPlayerArmour(damagedid, Damage);
if(Damage > 0)
{
if(amount > Damage)
{
SetPlayerArmour(damagedid, 0);
}
else
{
SetPlayerArmour(damagedid, Damage-amount);
}
}
else
{
GetPlayerHealth(damagedid, Damage);
SetPlayerHealth(damagedid, Damage-amount);
}
return 1;
}