02.06.2012, 12:19
Hello. I've made this thing in OnPlayerTakeDamage:
If the player has no armour, the server is going to give him one to make the armour lose, I simply need help on it. Thank you.
Код:
new Float:HP; new Float:armour; GetPlayerArmour(playerid, armour); GetPlayerHealth(playerid, HP); if (weaponid == 24) { if (armour > 0) { SetPlayerArmour(playerid, armour-40); SetPlayerHealth(playerid, HP-5); } else if (armour < 0) { SetPlayerHealth(playerid, HP-20);//DesertEagle } }