Keys sprint doesn't remove all animation after clear it
#5

What I used to clearn anim:
PHP код:
IsCrounching(playerid
    return (
GetPlayerAnimationIndex(playerid) == 1159 || GetPlayerAnimationIndex(playerid) == 1274 true false);

forward ClearAnimations(playerid);
public 
ClearAnimations(playerid)
{
    if(
IsCrounching(playerid))
        
ApplyAnimation(playerid"PED""GUNCROUCHFWD"4.1000011);
    else 
        
ApplyAnimation(playerid"CARRY""crry_prtial"4.100000);
    return 
1;

This should work.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)