04.10.2015, 12:26
So, i want to do that : If player wearing oxygen tank, his hp not moving from water. But other death causes can kill him. This is what i tried :
HP is lowering slower with this code, but it's still moving.
Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart) { if(weaponid == 53) { if(OxygenTank[playerid] == 1) { GetPlayerHealth(playerid, HP); SetPlayerHealth(playerid, HP); } } return 1; }