[Ajuda] Diminuir Dano das armas
#1

peguei um codigo aki do forum mesmo que deixa o LAG na skin sу que fica muito easy de matar queria retirar 30% de dano de todas as armas pq se nao fica um cъ

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


Messages In This Thread
Diminuir Dano das armas - by Micael_Vitor - 16.09.2012, 18:43
Re: Diminuir Dano das armas - by FenixBorn - 16.09.2012, 18:44
Re: Diminuir Dano das armas - by Micael_Vitor - 16.09.2012, 18:53
Re: Diminuir Dano das armas - by FenixBorn - 16.09.2012, 18:55
Re: Diminuir Dano das armas - by Micael_Vitor - 16.09.2012, 19:17

Forum Jump:


Users browsing this thread: 2 Guest(s)