Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

Animation Help

$
0
0
Code:

if((newkeys & KEY_SPRINT) && !(oldkeys & KEY_SPRINT) )
        {
                if(GetPlayerSkin(playerid) == 99 )
                {
                        ApplyAnimation(playerid, "SKATE", "skate_sprint", 4.1, 1, 1, 1, 1, 1, 1);
                }
        }

So i am applying a skating animation. but the problem is when a player releases sprint it should stop and so i tried adding this code to it

Code:

if ((oldkeys & KEY_SPRINT) && !(newkeys & KEY_SPRINT))
        {
                if(GetPlayerSkin(playerid) == 99 )
                {
            ClearAnimations(playerid);
                }
        }

but still it not stopping so how to make this animation when player holding a key ??

Thnx rep

Viewing all articles
Browse latest Browse all 18226

Trending Articles