25.06.2014, 23:18
OnVehicleSpawn is only called when a vehicle respawns.
So you need to set the engine parameter to on when the vehicle is created, too.
So you need to set the engine parameter to on when the vehicle is created, too.
pawn Код:
new vehicleid = CreateVehicle(....);
if(IsModelABycicle(vehicleid))
{
GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vehicleid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
}

