Clear Animation.
#1

How can I do when you press right click to clear animations? (( ClearAnimations(playerid) ))
Reply
#2

Check for (newkeys & KEY_HANDBRAKE) in OnPlayerKeyStateChange.

KEY_HANDBRAKE is the aim button when you are on foot.
Reply
#3

I don't have OnPlayerKeyStateChange in my gamemod.
Reply
#4

Then put it in your gamemod
Public OnPlayerKeyStateChange
Reply
#5

Put this in ur GM:
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if (newkeys & KEY_HANDBRAKE)
    {
         ApplyAnimation(playerid, "CARRY", "crry_prtial", 1.0, 0, 0, 0, 0, 0);
         ClearAnimations(playerid);
    }
    return 1;
}
Reply
#6

No work.
Reply
#7

Код:
f(strcmp("/stopanim",cmdtext,true) == 0)
	{
	ApplyAnimation(playerid, "CARRY", "crry_prtial", 4.0, 0, 0, 0, 0, 0);
	return 1;
}
Reply
#8

Oh god.. I need something else, not this.
Reply
#9

Why isn't anybody using the real function?

https://sampwiki.blast.hk/wiki/ClearAnimations
Reply
#10

Because i want to clear animations when you right clicked.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)