SA-MP Forums Archive
[Ajuda] apertar 2 teclas para utilizar algo - 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] apertar 2 teclas para utilizar algo (/showthread.php?tid=610670)



apertar 2 teclas para utilizar algo - iSoaD - 26.06.2016

PHP код:
@Resolvido 



Respuesta: apertar 2 teclas para utilizar algo - XandyMello - 26.06.2016

Use como base:
new anim = GetPlayerAnimationIndex(playerid);
if(anim == 1643) //pega o id do anim de agachar, pois eu n sei qual й, esse que estб aн n й.
{

}
pawn Код:
if(PRESSED(KEY_WALK))
    {
        new anim = GetPlayerAnimationIndex(playerid);
        if(anim == 1643)
        {
            if(!IsPlayerInAnyVehicle(playerid))
            {
                if(IsPlayerInRangeOfPoint(playerid,1.1,Loot[GetLootIDFunction(playerid)][xLootdrop],Loot[GetLootIDFunction(playerid)][yLootdrop],Loot[GetLootIDFunction(playerid)][zLootdrop]))
                {
                    DayZSA_DisplayLootFunction(playerid);
                }
            }
    }
    }
Basta procurar o id do anim como falei acima de agachar.


Re: Respuesta: apertar 2 teclas para utilizar algo - iSoaD - 26.06.2016

Quote:
Originally Posted by XandyMello
Посмотреть сообщение
Use como base:
new anim = GetPlayerAnimationIndex(playerid);
if(anim == 1643) //pega o id do anim de agachar, pois eu n sei qual й, esse que estб aн n й.
{

}
pawn Код:
@Resolvido
Basta procurar o id do anim como falei acima de agachar.
vlw, tava em duvida se tinha que adicionar 2 keys, vlw msm <3