Applyanimation on exit vehicle
#3

Quote:
Originally Posted by JuanStone
Посмотреть сообщение
pawn Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        if(GetPlayerVehicleID(playerid) >= PIZZABIKE[0] && GetPlayerVehicleID(playerid) <= PIZZABIKE[10])
        {
            if(PlayerInfo[playerid][HoldingObject] == 1)
            {
                ApplyAnimation(playerid,"CARRY","crry_prtial", 4.1, 1, 0, 0, 1, 1);
            }
        }
    }
    return true;
}
code u gave check if player is a driver i need to apply animation when he exit vehicle , i have solved this . the problem was that i have checked is player on foot and after that i try to check his vehicleid and so there code stop working cuz if player is on foot vehicle id dont mach
Reply


Messages In This Thread
Applyanimation on exit vehicle - by cyberlord - 03.01.2015, 14:15
Re: Applyanimation on exit vehicle - by JuanStone - 03.01.2015, 14:23
Re: Applyanimation on exit vehicle - by cyberlord - 03.01.2015, 14:30

Forum Jump:


Users browsing this thread: 1 Guest(s)