SA-MP Forums Archive
[Ajuda] Headshot mata atй com soco - 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] Headshot mata atй com soco (/showthread.php?tid=386729)



Headshot mata atй com soco - Vinicius_TroLL - 21.10.2012

O comando headshot mata com todas as armas alguem me ajuda ?

Code:
public HeadShot()
{
    new
        index;
    for(new playerid; playerid < maxPlayers; playerid++)
    {
        if(IsPlayerConnected(playerid))
        {
            index = GetPlayerAnimationIndex(playerid);
            if(index == 1173 || index == 1175 || index == 1177 || index == 1178)
            {
                SetPVarInt(playerid, "Headshot", 1);
                SetPlayerHealth(playerid, 0);
            }
        }
    }
    return 1;
}



Re: Headshot mata atй com soco - Vinicius_TroLL - 21.10.2012

Ajuda ae pfv


Re: Headshot mata atй com soco - Lucas-Fc - 21.10.2012

Creio que nгo hб como definir um tipo de arma, para poder a funзгo do HeadShot seja Aplicada. :\

UP


Re: Headshot mata atй com soco - gilpenner - 21.10.2012

Checa se foi com a sniper, caso contrбrio retorna.


Re: Headshot mata atй com soco - Vinicius_TroLL - 21.10.2012

Nгo intendi


Re: Headshot mata atй com soco - AmericanStyle'™ - 21.10.2012

pawn Code:
public HeadShot()
{
    new
        index;
    for(new playerid; playerid < maxPlayers; playerid++)
    {
        if(IsPlayerConnected(playerid))
        {
            if(GetPlayerWeapon(playerid) == 34)
            {
                index = GetPlayerAnimationIndex(playerid);
                if(index == 1173 || index == 1175 || index == 1177 || index == 1178)
                {
                    SetPVarInt(playerid, "Headshot", 1);
                    SetPlayerHealth(playerid, 0);
                }

            }
        }
    }
    return 1;
}
Abraзos.