28.06.2013, 20:28
Okay, so I've copied Function from SAMP scripting site, and added my animation to it, this is how it looks like
Now, after the anim ends it freezes me in place, I know it's "freeze Will freeze the player in position after the animation finishes."
But! If I set it to 0, the animation won't start up.
I had an idea of setting player position z+0.01 but, it looked abut odd.
pawn Код:
forward woodagain(playerid);
public woodagain(playerid)
{
ApplyAnimation(playerid,"ped","BIKE_pickupL",4.1,0,0,0,1,1,1);
SetPlayerCheckpoint(playerid, 2629.5989, -433.7548, 65.3618, 3.0);
for(new i=0; i<MAX_PLAYER_ATTACHED_OBJECTS; i++)
{
if(IsPlayerAttachedObjectSlotUsed(playerid, i)) RemovePlayerAttachedObject(playerid, i);
}
}
But! If I set it to 0, the animation won't start up.
I had an idea of setting player position z+0.01 but, it looked abut odd.