```c new Float:health, Float:armour; ...
# pawn-help
f
Copy code
c
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