This function was added in SA-MP 0.3b and will not work in earlier versions!
Returns the index of any running applied animations.
|playerid||ID of the player of whom you want to get the animation index of.|
0 if there is no animation applied
GetAnimationName(GetPlayerAnimationIndex(playerid), animLib, sizeof animLib, animName, sizeof animName);
format(msg, sizeof msg, "Running anim: %s %s", animLib, animName);
SendClientMessage(playerid, 0xFFFFFFFF, msg);
- GetAnimationName: Get the animation library/name for the index.