SA-MP Forums Archive
ApplyAnimation - 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: ApplyAnimation (/showthread.php?tid=307226)



ApplyAnimation - Unknown123 - 29.12.2011

this animation dont stop when i use ClearAnimations(playerid);

pawn Код:
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

pawn Код:
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;
}



Re: ApplyAnimation - HyperZ - 29.12.2011

Try this:
pawn Код:
CMD:stop(playerid,params[])
{
    ClearAnimations(playerid);
    ApplyAnimation(playerid, "CARRY", "crry_prtial", 4.0, 0, 0, 0, 0, 0);
    return 1;
}



Re: ApplyAnimation - Unknown123 - 29.12.2011

dont work, the fist anim still run


Re: ApplyAnimation - Bogdan1992 - 29.12.2011

Try with this

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