Anti-lag shoot
#1

DELETE THIS
Reply
#2

pawn Код:
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid)
{
    new Float:Damage;
    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);
    }
    return 1;
}
This should work as GetPlayerArmour doesn't return the value, it puts it in the Damage variable.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)