[HELP] Animations
#6

pawn Код:
public OnPlayerText(playerid, text[])
{
    new Time = strlen(text);//Get lenght of text
    if(IsPlayerInAnyVehicle(playerid)) ApplyAnimation(playerid,"CAR_CHAT","CAR_Sc3_FL",4.1,1,1,1,0,Time*100);//lenght * 100 millisec
    else ApplyAnimation(playerid,"MISC","Idle_Chat_02",4.1,1,1,1,0,Time*100);
    return 1;
}
OnPlayerKeyStateChange. For skipping animation with KEY_FIRE onfoot & HANDBRAKE in a vehicle!
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys & KEY_HANDBRAKE && IsPlayerInAnyVehicle(playerid))
    {
        ApplyAnimation(playerid, "CARRY", "crry_prtial", 4.0, 0, 0, 0, 0, 0);
        return 1;
    }
    else if(newkeys & KEY_FIRE)
    {
        ApplyAnimation(playerid, "CARRY", "crry_prtial", 4.0, 0, 0, 0, 0, 0);
        return 1;
    }
    return 1;
}
Reply


Messages In This Thread
[HELP] Animations - by AcId n RaPiD - 19.12.2009, 13:54
Re: [HELP] Animations - by DeltaAirlines12 - 19.12.2009, 13:57
Re: [HELP] Animations - by AcId n RaPiD - 20.12.2009, 12:42
Re: [HELP] Animations - by saiberfun - 20.12.2009, 12:54
Re: [HELP] Animations - by miokie - 20.12.2009, 12:55
Re: [HELP] Animations - by Djiango - 20.12.2009, 13:12

Forum Jump:


Users browsing this thread: 6 Guest(s)