PDA

View Full Version : ApplyAnimation


Unknown123
29/12/2011, 07:22 PM
this animation dont stop when i use ClearAnimations(playerid);


ApplyAnimation(playerid, "BASEBALL", "BAT_PART", 4.1, 1, 1, 1, 1, 1, 1);


i want that anumation to run untill i use "ClearAnimations(playerid);" but "ClearAnimations(playerid);" dont work on it


CMD:run(playerid,params[])
{
ApplyAnimation(playerid, "BASEBALL", "BAT_PART", 4.1, 1, 1, 1, 1, 1, 1);
return 1;
}

CMD:stop(playerid,params[])
{
ClearAnimations(playerid);
return 1;
}

HyperZ
29/12/2011, 07:30 PM
Try this:
CMD:stop(playerid,params[])
{
ClearAnimations(playerid);
ApplyAnimation(playerid, "CARRY", "crry_prtial", 4.0, 0, 0, 0, 0, 0);
return 1;
}

Unknown123
29/12/2011, 07:46 PM
dont work, the fist anim still run

Bogdan1992
29/12/2011, 07:48 PM
Try with this

CMD:stop(playerid,params[])
{
TogglePlayerControllable(playerid,true);
return 1;
}