14.07.2014, 21:07
pawn Code:
new armour;//defines the armour var..
GetPlayerArmour(playerid, armour);//Get the players armour
if(armour >= x)//Check if the armour is above a certain ammount (change the x.)
SetPlayerArmour(playerid, armour-ammount);//If the armour is higher than the ammount you checked, decrease it with the ammount you like..
//If the armour check is not higher, take the ammount form the health