Skip to content

With this script you will be able to work with the OnPlayerFinishAnimation event

License

Notifications You must be signed in to change notification settings

NoPressF/fiAnimation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

fiAnimation

With this script you will be able to work with the OnPlayerFinishAnimation event

Example:

ApplyAnimation(playerid, "BOMBER", "BOM_PLANT_CROUCH_IN", 4.1, false, false, false, false, 0, true, /*This parameter You must set this parameter to a boolean value true = the function works, false = no. Default false.*/);
public OnPlayerFinishAnimation(playerid, animationid, finishedMilseconds)
{
    // Animationid - get value a played id animation.
    // finishedMilseconds - get value a how long the animation has been completed in milliseconds since it started.
    // Example:
    if(animationid == 165)
    {
        SendClientMessage(playerid, -1, !"Animation finished!");
        printf("Animation finished in [ %i ] milseconds!", finishedMilseconds); // Result = Animation finished in [ 850~ ] milseconds!
    }
    return true;
}

About

With this script you will be able to work with the OnPlayerFinishAnimation event

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published