26.02.2018, 07:38
Quote:
|
I tried it but it failed.
I just stand still Although I do not use any action, it still fails. Код:
cmd:mload(playerid, params[])
{
if(GetPlayerAnimationIndex(playerid))
{
SendClientMessageEx(playerid, -1, "You are using another action.");
}
return 1;
}
|
You could hook ApplyAnimation and ClearAnimations and set a boolean when the script set an animation and reset it when it clear any animation.
Refer you to this boolean to know if a player is running an animation or not.


