Anti lag shoot
#1

Should this work as an anti lag shoot. Can't test since I'm not home
pawn Код:
public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid)
{
    if(damagedid != INVALID_PLAYER_ID)
    {
        new Float:heath, Float:armour;
        GetPlayerArmour(damagedid, armour);
        GetPlayerHealth(damagedid, heath);
        if(armour > 0)
        {
            if(amount > armour) {
                SetPlayerArmour(damagedid, 0);
            }
            else SetPlayerArmour(damagedid, armour-amount);
        }
        else SetPlayerHealth(damagedid, heath-amount);
    }
    return 1;
}
Reply


Messages In This Thread
Anti lag shoot - by arko123 - 07.12.2013, 23:43
Re: Anti lag shoot - by erminpr0 - 07.12.2013, 23:47
Re: Anti lag shoot - by arko123 - 07.12.2013, 23:51
Re: Anti lag shoot - by Pottus - 08.12.2013, 02:11
Re: Anti lag shoot - by cessil - 08.12.2013, 02:48

Forum Jump:


Users browsing this thread: 1 Guest(s)