16.06.2016, 04:26
When a player has armour and it gets near low and a player shoots them it sets their armour to 100 again, i dont know whats causing this but here is my onplayertakedamage
it happens with all guns but all the weaponids are the same layout as this above.
Code:
if(weaponid == 24) // DEAGLE { if (armour > 3.0) { SetPlayerArmour(playerid, armour-45.0); } else if (armour < 4.0) { SetPlayerArmour(playerid, 0); } if (health > 3.0 && armour < 1) { SetPlayerHealth(playerid, health-27.0); } else if (health < 3.0 && armour < 1) { SetPlayerHealth(playerid, 0.0); } }