Animations - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Animations (
/showthread.php?tid=354390)
Animations -
PaulDinam - 26.06.2012
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?
Re: Animations -
Dan_Barocu - 26.06.2012
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;
}
}