30.10.2016, 11:46
Quote:
|
I guess you want to do it like this?
Код:
if (Armour[playerid] > amount) Armor[playerid] -= amount;
else if (Armour[playerid])
{
amount - Armour[playerid];
Armour[playerid] = 0.0;
if (amount)
{
if (Health[playerid] > amount) Health[playerid] -= amount;
else Health[playerid] = 0.0;
}
}
else if (Health[playerid] > amount) Health[playerid] -= amount;
else Health[playerid] = 0.0;
|


