[Ajuda] Sem lag no x1 (alguem sabe como?)
#4

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


Messages In This Thread
Sem lag no x1 (alguem sabe como?) - by Sonik_Paintballer - 25.11.2012, 17:33
Re: Sem lag no x1 (alguem sabe como?) - by zSuYaNw - 25.11.2012, 17:36
Re: Sem lag no x1 (alguem sabe como?) - by Sonik_Paintballer - 25.11.2012, 17:39
Re: Sem lag no x1 (alguem sabe como?) - by FleXx_01 - 25.11.2012, 18:00

Forum Jump:


Users browsing this thread: 2 Guest(s)