09.02.2011, 22:55
Hello everybody,
well, my question its how if player its holding SPRINT/SPACE, it apply sprint animation
and if he stop holding, it stop doing the animation.
I used:
if((newkeys & KEY_SPRINT))
{
ApplyAnimation(playerid,"PED","sprint_civi",4.1,1, 1,1,1,1,1);
}
And when i stop holding SPACE, the animation dont stop.
Thx,
well, my question its how if player its holding SPRINT/SPACE, it apply sprint animation
and if he stop holding, it stop doing the animation.
I used:
if((newkeys & KEY_SPRINT))
{
ApplyAnimation(playerid,"PED","sprint_civi",4.1,1, 1,1,1,1,1);
}
And when i stop holding SPACE, the animation dont stop.
Thx,