Animations
#1

I tried to do if the player press enter so the animation will stop but
when the player is near car he cant enter it.
Can someone give me a good code?
Reply
#2

pawn Код:
if ((newkeys & KEY_SECONDARY_ATTACK)) && (GetPlayerState(playerid)== PLAYER_STATE_ONFOOT))
                    {
                        new Float:Velocity[3];
                        GetPlayerVelocity(playerid, Velocity[0], Velocity[1], Velocity[2]);
                        if(Velocity[2] == 0)
                        {
                                ClearAnimations(playerid);
                        return 1;
                        }
                    }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)