Clear Annimation
#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


Messages In This Thread
Clear Annimation - by jaskiller - 11.01.2012, 20:10
Re : Clear Annimation - by jaskiller - 11.01.2012, 20:55
Re: Clear Annimation - by MR,Mr - 11.01.2012, 21:05
Re: Clear Annimation - by Snowman12 - 11.01.2012, 21:45
Re : Clear Annimation - by jaskiller - 12.01.2012, 12:39
Re : Clear Annimation - by jaskiller - 12.01.2012, 16:32

Forum Jump:


Users browsing this thread: 1 Guest(s)