ClearAnimations - 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: ClearAnimations (
/showthread.php?tid=344773)
ClearAnimations -
Attias - 22.05.2012
It does remove the object but it actually doesn't reset/clear the special animation:
Код:
SPECIAL_ACTION_CUFFED
The command (/uncuff):
Код:
if(!strcmp(cmdtext, "/uncuff", true))
{
ClearAnimations(playerid);
RemovePlayerAttachedObject(playerid, 0);
TogglePlayerControllable(playerid, true);
SendClientMessage(playerid, 0xFFDE00FF, "You've been uncuffed. {00E2FF}Psst, fuck those officers once again!");
return 1;
}
Re: ClearAnimations -
Youice - 22.05.2012
Try to use this function "StopLoopingAnim(playerid);"
Re: ClearAnimations -
Attias - 22.05.2012
Код:
error 017: undefined symbol "StopLoopingAnim"
Re: ClearAnimations -
Ruben_Alonso - 22.05.2012
Try to use this function "ApplyAnimation(playerid, "CARRY", "crry_prtial", 2.0, 0, 0, 0, 0, 0);"
Re: ClearAnimations -
iggy1 - 22.05.2012
Special actions aren't exactly animations. Try this.
pawn Код:
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
Re: ClearAnimations -
BlackBank - 22.05.2012
Already tried this ?:
pawn Код:
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
Re: ClearAnimations -
Youice - 22.05.2012
I forget to add the "define"
Код:
StopLoopingAnim(playerid)
{
gPlayerUsingLoopingAnim[playerid] = 0;
ApplyAnimation(playerid, "CARRY", "crry_prtial", 4.0, 0, 0, 0, 0, 0);
}
Re: ClearAnimations -
iggy1 - 22.05.2012
Special actions are not animations^^. Use the code me and blackbank posted.
Re: ClearAnimations -
Attias - 22.05.2012
Works, thank you guys! +rep