ClearAnimations
#1

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;
	}
Reply
#2

Try to use this function "StopLoopingAnim(playerid);"
Reply
#3

Код:
error 017: undefined symbol "StopLoopingAnim"
Reply
#4

Try to use this function "ApplyAnimation(playerid, "CARRY", "crry_prtial", 2.0, 0, 0, 0, 0, 0);"
Reply
#5

Special actions aren't exactly animations. Try this.

pawn Код:
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
Reply
#6

Already tried this ?:
pawn Код:
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
Reply
#7

I forget to add the "define"


Код:
StopLoopingAnim(playerid)
{
    gPlayerUsingLoopingAnim[playerid] = 0;
    ApplyAnimation(playerid, "CARRY", "crry_prtial", 4.0, 0, 0, 0, 0, 0);
}
Reply
#8

Special actions are not animations^^. Use the code me and blackbank posted.
Reply
#9

Works, thank you guys! +rep
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)