if(IsPlayerInVehicle(ID, GetPlayerVehicleID(playerid) && GetPlayerVehicleSeat(playerid) == 0){ //your code}