[Ajuda] Danos De Armas
#6

tenta
pawn Код:
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid) {

    new Float:vida, Float:colete;
    GetPlayerHealth( damagedid, vida );
    GetPlayerArmour( damagedid, colete );
    if(weaponid == 34) {//'34' id da arma
        if(colete >= 1) {
            SetPlayerArmour( damagedid, colete - 20 );//quantos vai tirar de colete
        }
        else
        {
            SetPlayerHealth( damagedid, vida - 20 );//quantos vai tirar de vida
        }
    }
    return 1;
}
Reply


Messages In This Thread
Danos De Armas - by FPB_Lipos - 02.03.2013, 01:29
Re: Danos De Armas - by ipsLuan - 02.03.2013, 01:34
Re: Danos De Armas - by FPB_Lipos - 02.03.2013, 01:38
Respuesta: Danos De Armas - by bastiga - 02.03.2013, 16:54
Re: Danos De Armas - by FPB_Lipos - 02.03.2013, 19:37
Re: Danos De Armas - by Coringa_Vilao - 02.03.2013, 19:39
Re: Danos De Armas - by FPB_Lipos - 02.03.2013, 19:54
Re: Danos De Armas - by Coringa_Vilao - 02.03.2013, 19:58

Forum Jump:


Users browsing this thread: 2 Guest(s)