From SA-MP Wiki

Jump to: navigation, search


Returns the index of any running applied animations.

GetPlayerAnimationIndex was added in SA-MP 0.3b This function was added in SA-MP 0.3b and will not work in earlier versions!

playeridID of the player of whom you want to get the animation index of.

Return Values:

0 if there is no animation applied

Example Usage:

public OnPlayerUpdate(playerid)
        new animlib[32];
        new animname[32];
        new msg[128];
        format(msg, 128, "Running anim: %s %s", animlib, animname);
        SendClientMessage(playerid, 0xFFFFFFFF, msg);
    return 1;

Related Functions

The following functions may be useful, as they are related to this function in one way or another.

Personal tools