ClearAnimations
From SA-MP Wiki
ClearAnimations
Clears (stops) all animations for the given player.
(playerid)
| playerid | The ID of the player to stop the animations of |
This function does not return a specific value.
public OnPlayerCommandText(playerid, cmdtext[]) { if(!strcmp(cmdtext, "/animsoff", true)) { ClearAnimations(playerid); return 1; } return 0; }
Related Functions
The following functions might be useful as well, as they're related to this function in one way or another.
- ApplyAnimation: Apply an animation to a player.
