SA-MP Forums Archive
Clear Annimation - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Clear Annimation (/showthread.php?tid=310352)



Clear Annimation - jaskiller - 11.01.2012

hi i applied animation for players in vehicle but when I call ClearAnimation(playerid), they was ejected from vehicles why .. sorry for my bad english


Re : Clear Annimation - jaskiller - 11.01.2012

up````


Re: Clear Annimation - MR,Mr - 11.01.2012

Give it more than 45 minutes to bump topics, christ almighty!


Re: Clear Annimation - Snowman12 - 11.01.2012

When do you call the animation clear? Under which function? And you sure you haven't added RemovePlayerFromVehicle(vehicleid, playerid)?


Re : Clear Annimation - jaskiller - 12.01.2012

PHP код:
public OnPlayerKeyStateChange(playeridnewkeysoldkeys)
{
    if (
newkeys == KEY_FIRE)
    {
        if (
IsPlayerInAnyVehicle(playerid))
        {
            
SetTimerEx("Engine"3000false"i"playerid);
            
ApplyAnimation(playerid"FAT""IDLE_TIRED"4.1111101);
        }
    }
    return 
1;
}

public 
Engine(playerid)
{
    new 
vehid GetPlayerVehicleID(playerid);
    new 
random(2);
    if (
== 0)
    {
        
SendClientMessage(playeridCOLOR_ERROR"Vous n'avez reussi a demarrer le moteur");
        
ClearAnimations(playerid1);
    }
    else
    {
        
ClearAnimations(playerid1);
         
SetVehicleParamsEx(vehid1000000);
        
vData[vehid][E_params][0] = 1;
        
SendClientMessage(playeridCOLOR_GREEN"Vous avez reussi a demarrer le moteur");
    }





Re : Clear Annimation - jaskiller - 12.01.2012

uppp...