08.01.2015, 16:23
So when i get on bicycle i cant drive with it but i have set that when you get on bicycle Engine is on.
And when i take trucking job mission 26, county run and when i enter checkpoint it says i'm not in the banks car. ANd when i enter by feet it shows me not the right checkpoint to return.
Code http://pastebin.com/2sW4EE8u
PHP код:
//OnPlayerEnterVehicle
if(engine == VEHICLE_PARAMS_UNSET) switch(GetVehicleModel(vehicleid)) {
case 509, 481, 510: VehicleFuel[vehicleid] = 100, arr_Engine{vehicleid} = 1, SetVehicleParamsEx(vehicleid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
default: SetVehicleParamsEx(vehicleid,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,alarm,doors,bonnet,boot,objective), arr_Engine{vehicleid} = 0;
}
new pveh = GetVehicleModel(GetPlayerVehicleID(playerid));
if(pveh == 510 || pveh == 462 || pveh == 481 || pveh == 509)
{
arr_Engine{vehicleid} = 1;
GetVehicleParamsEx(pveh,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(pveh, 1, lights, 0, 0, 0, 0, 0);
}
//OnPlayerStateChange under if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER)
new engine,lights,alarm,doors,bonnet,boot,objective, vehicleid;
GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
if(GetVehicleModel(vehicleid) == 509 || GetVehicleModel(vehicleid) == 481 || GetVehicleModel(vehicleid) == 510)
{
VehicleFuel[vehicleid] = 100;
arr_Engine{vehicleid} = 1;
SetVehicleParamsEx(vehicleid, 1, lights, alarm, doors, bonnet, boot, objective);
}
Code http://pastebin.com/2sW4EE8u