[SUGG] Customize ManualVehicleEngineAndLights. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [SUGG] Customize ManualVehicleEngineAndLights. (
/showthread.php?tid=196138)
[SUGG] Customize ManualVehicleEngineAndLights. -
cepiokas - 04.12.2010
To create new func. instead of ManualVehicleEngineAndLights();
Example below.
Код:
native ManualVehicle(manualID);
#define FULLY_MANUAL 0 // Same as ManualVehicleEngineAndLights
#define ENGINE_MANUAL 1 // Just engine needs to enable/disable manually, lights will be enabled auto in night
#define LIGHTS_MANUAL 2 // Just lights will be able to manual, engine works normally.
Re: [SUGG] Customize ManualVehicleEngineAndLights. -
veyron - 04.12.2010
It should be scriptable using VEHICLE_PARAMS_UNSET.
For manual engine just set lights VEHICLE_PARAMS_UNSET an they should work at night, havent tested.
Automatic engine starting should be easy to script. (i used onplayerstatechange)