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