25.08.2012, 07:20
solved with car tuning
but with engine ?
i need to use /rac first te set engine off to all vehicles
if i don't use this the engine is on to all vehicles ....
that is my new OnVehicleSpawn
or i need to add the engine script from onvehiclespawn to ongamemodeinit ?
but with engine ?
i need to use /rac first te set engine off to all vehicles
if i don't use this the engine is on to all vehicles ....
PHP код:
public OnVehicleSpawn(vehicleid)
{
if(IsABike(vehicleid))
{
engineOn[vehicleid] = true;
new enginem, lights, alarm, doors, bonnet, boot, objective;
GetVehicleParamsEx(vehicleid,enginem, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(vehicleid,VEHICLE_PARAMS_ON, lights, alarm, doors, bonnet, boot, objective);
return 1;
}
else
{
engineOn[vehicleid] = false;
new enginem, lights, alarm, doors, bonnet, boot, objective;
GetVehicleParamsEx(vehicleid,enginem, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(vehicleid,VEHICLE_PARAMS_OFF, lights, alarm, doors, bonnet, boot, objective);
}
return 1;
}
or i need to add the engine script from onvehiclespawn to ongamemodeinit ?