A small question for a whole topic(how to check if a player is using an certain anim?)
#2

pawn Код:
GetPlayerAnimationIndex(playerid);
https://sampwiki.blast.hk/wiki/GetPlayerAnimationIndex

Example of usage:
pawn Код:
public IsPlayerUsingParachute(playerid)
{
    new index = GetPlayerAnimationIndex(playerid);
    return (index >= 963 && index <= 979);//true if player is falling with an opened parachute
}
pawn Код:
public IsPlayerSkydiving(playerid)
{
    new index = GetPlayerAnimationIndex(playerid);
    return (index >= 958 && index <= 962);//true if player is falling with a closed parachute
}
Adjust to suit your needs.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)