08.06.2013, 19:41
PHP код:
new Float: Damage;
if (AdminDuty [damagedit] == 0)
{
GetPlayerArmour (damagedid, Damage);
if (Damage> 0)
{
if (amount> Damage)
{
SetPlayerArmour (damagedid, 0);
}
else
{
SetPlayerArmour (damagedid, Damage-amount);
}
}
else
{
GetPlayerHealth (damagedid, Damage);
SetPlayerHealth (damagedid, Damage-amount);
}
} else return 0;