14.02.2015, 16:29
Код:
CMD:fishing(playerid, params[])
{
SetTimerEx("Stop", 7000, false, "i", playerid);
TogglePlayerControllable(playerid,0);
ApplyAnimation(playerid,"SWORD","sword_block",50.0,0,1,0,1,1);
Hook[playerid]=SetPlayerAttachedObject(playerid, 4, 18632, 6, 0.2, -0.05, -0.05, 180, 0, 0, 1, 1, 1, 0);
return 1
}
forward Stop(playerid);
public Stop(playerid)
{
ClearAnimations(playerid);
TogglePlayerControllable(playerid,1);
RemovePlayerAttachedObject(playerid, 4);
}

As you can see, I could move but my hands still doing animation and animation disappears only if I jump. How to completely stop animation?


