SA-MP Forums Archive
[Ajuda] Sem lag no x1 (alguem sabe como?) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Sem lag no x1 (alguem sabe como?) (/showthread.php?tid=395265)



Sem lag no x1 (alguem sabe como?) - Sonik_Paintballer - 25.11.2012

SIM BPF DETECTED-_- alguem tem o code que faz com que possa atirar na skin ao inves do lag? esse negуcil de atira no alg й um saco


Re: Sem lag no x1 (alguem sabe como?) - zSuYaNw - 25.11.2012

https://sampforum.blast.hk/showthread.php?tid=327020


Re: Sem lag no x1 (alguem sabe como?) - Sonik_Paintballer - 25.11.2012

ta vlw mais aonde eu coloco cada coisa :S sou novo em pawno


Re: Sem lag no x1 (alguem sabe como?) - FleXx_01 - 25.11.2012

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 ._.