flat-egg-44689
05/25/2023, 9:42 PMc
new
Float:health,
Float:armour;
GetPlayerHealth(playerid, health);
GetPlayerArmour(playerid, armour);
new
Float:armourDamage = (armour >= damage) ? damage : armour,
Float:healthDamage = damage - armourDamage;
SetPlayerArmour(playerid, armour - armourDamage);
SetPlayerHealth(playerid, health - healthDamage);
Something like that