ClearAnimations FR

From SA-MP Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 04:26, 7 January 2013
Connor Mead (Talk | contribs)

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

Next diff →
Line 1: Line 1:
 +{{ScriptingFR}}
 +
 +{{Description|Stoppe toute les animations qu'exécute un joueur.}}
 +
 +{{ParametersFR|playerid, forcesync}}
 +{{Param|playerid|L'ID du joueur dont vous voulez stopper toute les animations.}}
 +{{Param|forcesync|(optionnel) Specifies whether the animation should be shown to streamed in players. Ajouté dans la 0.3b - enlevez ce paramètre si vous utilisez une version plus précédente.}}
 +
 +''Specifies whether the animation should be shown to streamed in players''{{traduct}}
 +
 +{{NoReturnFR}}
 +
 +<pawn>
 +public OnPlayerCommandText(playerid, cmdtext[])
 +{
 + if(!strcmp(cmdtext, "/animclear", true))
 + {
 + ClearAnimations(playerid);
 + return 1;
 + }
 + return 0;
 +}
 +</pawn>
 +
 +{{RelatedFunctionsFR}}
 +{{ApplyAnimation_FR}}
 +
[[Category:Scripting Functions FR]] [[Category:Scripting Functions FR]]
 +
 +[[en:ClearAnimations]]
 +[[de:ClearAnimations]]
 +[[ru:ClearAnimations]]

Revision as of 18:08, 4 February 2014



Description:

Stoppe toute les animations qu'exécute un joueur.


Paramètres:
(playerid, forcesync)
playeridL'ID du joueur dont vous voulez stopper toute les animations.
forcesync(optionnel) Specifies whether the animation should be shown to streamed in players. Ajouté dans la 0.3b - enlevez ce paramètre si vous utilisez une version plus précédente.


Specifies whether the animation should be shown to streamed in players

RetourneCette fonction ne retourne pas de valeur spécifique.


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

Fonctions Relatives

Les fonctions suivantes peuvent être utiles car elles sont indirectement ou directement liées a cette fonction.

In other languages