ClearAnimations

From SA-MP Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 21:27, 22 January 2014
Smithy (Talk | contribs)

← Previous diff
Revision as of 18:09, 4 February 2014
Connor Mead (Talk | contribs)

Next diff →
Line 25: Line 25:
[[Category:Scripting Functions]] [[Category:Scripting Functions]]
 +
[[de:ClearAnimations]] [[de:ClearAnimations]]
 +[[fr:ClearAnimations]]
[[ru:ClearAnimations]] [[ru:ClearAnimations]]

Revision as of 18:09, 4 February 2014



Description:

Clears all animations for the given player.


Parameters:
(playerid, forcesync)
playeridThe ID of the player to clear the animations of
forcesync(optional) Specifies whether the animation should be shown to streamed in players. Added in version 0.3b - leave out if using an earlier version.


Return Values:

This function does not return any specific values.


public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/animclear", true))
    {
        ClearAnimations(playerid);
        return 1;
    }
    return 0;
}

Related Functions

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

In other languages