Help with infinite breath
#1

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 :

Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
    if(weaponid == 53)
    {
        if(OxygenTank[playerid] == 1)
        {
	        GetPlayerHealth(playerid, HP);
	        SetPlayerHealth(playerid, HP);
		}
    }
	return 1;
}
HP is lowering slower with this code, but it's still moving.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)