24.01.2011, 13:50
How can I do when you press right click to clear animations? (( ClearAnimations(playerid) ))
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;
}
f(strcmp("/stopanim",cmdtext,true) == 0) { ApplyAnimation(playerid, "CARRY", "crry_prtial", 4.0, 0, 0, 0, 0, 0); return 1; }