sergeydrushko
Изучающий
- Регистрация
- 25 Ноя 2018
- Сообщения
- 241
- Лучшие ответы
- 1
- Репутация
- 12
Привет, подскажите как тпхать пассажиров вместе с водителем:
PHP:
if(veh_id != 0)
{
J_SetVehiclePos(
veh_id,
GaragesInteriors[HouseInfo[i][hKlass] - 1][e_GARAGE_INTERIOR_X],
GaragesInteriors[HouseInfo[i][hKlass] - 1][e_GARAGE_INTERIOR_Y],
GaragesInteriors[HouseInfo[i][hKlass] - 1][e_GARAGE_INTERIOR_Z]+1.0
);
LinkVehicleToInterior(veh_id, GaragesInteriors[HouseInfo[i][hKlass] - 1][e_GARAGE_INTERIOR_INT]);
SetVehicleVirtualWorld(veh_id, i + 50);
}
J_SetPlayerPos(
playerid,
GaragesInteriors[HouseInfo[i][hKlass] - 1][e_GARAGE_INTERIOR_X],
GaragesInteriors[HouseInfo[i][hKlass] - 1][e_GARAGE_INTERIOR_Y],
GaragesInteriors[HouseInfo[i][hKlass] - 1][e_GARAGE_INTERIOR_Z] + 1.0
);
SetPlayerInterior(playerid, GaragesInteriors[HouseInfo[i][hKlass] - 1][e_GARAGE_INTERIOR_INT]);
SetPlayerVirtualWorld(playerid, i + 50);
if(veh_id != 0) PutPlayerInVehicle(playerid, veh_id, 0);
GarageEntered[playerid] = i;
return 1;
}