[Ajuda] NO-LAG
#1

Olб, boa tarde!!!

Estou usando este cуdigo, porem os kills nгo estгo atribuindo corretamente...
Me ajudem:

pawn Код:
#include <alss>

public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid)
{
    new Float:HP, Float:Colete, Float:Dano;
    GetPlayerArmour(damagedid, Colete);
    GetPlayerHealth(damagedid, HP);
    if(weaponid == 24){amount = 10;}//eagle
    if(weaponid == 23){amount = 50;}//silencedcolt
    if(Colete > 0)
    {
        if(amount > Colete)
        {
            Dano = amount - Colete;
            HP = HP - Dano;
            SetPlayerArmour(damagedid, 0.0);
            SetPlayerHealth(damagedid, HP);
            return 1;
        }
        Colete = Colete - amount;
        SetPlayerArmour(damagedid, Colete);
    }
    if(Colete < 1)
    {
        HP = HP - amount;
        SetPlayerHealth(damagedid, HP);
    }
    return 1;
}
Obrigado!
Reply


Messages In This Thread
NO-LAG - by NuTShoT - 03.07.2013, 19:04
Respuesta: NO-LAG - by DartakousLien - 03.07.2013, 19:12
Re: NO-LAG - by NuTShoT - 03.07.2013, 19:28
Re: NO-LAG - by DannielCooper - 03.07.2013, 20:25
Re: NO-LAG - by ProKillerpa - 03.07.2013, 20:31
Re: NO-LAG - by DannielCooper - 03.07.2013, 20:41
Re: NO-LAG - by NuTShoT - 03.07.2013, 20:44
Re: NO-LAG - by ProKillerpa - 03.07.2013, 20:50
Respuesta: Re: NO-LAG - by DartakousLien - 03.07.2013, 21:12

Forum Jump:


Users browsing this thread: 1 Guest(s)