Clear Annimation
#1

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
Reply
#2

up````
Reply
#3

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

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

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");
    }


Reply
#6

uppp...
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)