[Pedido] Danos Armas
#3

pawn Код:
public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid)
{
    new Float:Life, Float:Coleete, Float:Dano;
    GetPlayerArmour(damagedid, Coleete);
    GetPlayerHealth(damagedid, Life);
    if(Coleete > 0)
    {
        if(amount > Coleete)
        {
            Dano = amount - Coleete;
            Life = Life - Dano;
            SetPlayerArmour(damagedid, 0.0);
            SetPlayerHealth(damagedid, Life);
            return 1;
        }
        Coleete = Coleete - amount;
        SetPlayerArmour(damagedid, Coleete);
    }
    if(Coleete < 1)
    {
        Life = Life - amount;
        SetPlayerHealth(damagedid, Life);
    }
    return 1;
}
Reply


Messages In This Thread
Danos Armas - by FenixBorn - 16.09.2012, 00:49
Re: Danos Armas - by Dolby - 16.09.2012, 00:51
Re: Danos Armas - by FenixBorn - 16.09.2012, 01:20
Re: Danos Armas - by Dolby - 16.09.2012, 01:24
Re: Danos Armas - by FenixBorn - 16.09.2012, 01:28
Re: Danos Armas - by FeelLikeASir_ - 16.09.2012, 01:30
Re: Danos Armas - by FenixBorn - 16.09.2012, 13:06
Re: Danos Armas - by Dolby - 16.09.2012, 13:07
Re: Danos Armas - by Will_Lda - 09.12.2012, 06:10
Re: Danos Armas - by [JD]BlackFire - 09.12.2012, 10:25

Forum Jump:


Users browsing this thread: 1 Guest(s)