06.08.2013, 15:57
Quote:
Use this function before any player connects (OnGameModeInit) to tell all clients that the script will toggle the light and engine status by itself so that the vehicle doesn't start the engine when you enter it. |
By using this functions, lights are working to both day and night.
So, when you execute /engine command for the vehicle etc (don't forget to get the vehicleid, it is just an example)
pawn Код:
new engine, lights, alarm, doors, bonnet, boot, objective;
GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(vehicleid, 1, 1, alarm, doors, bonnet, boot, objective);
// Turning the engine and lights on!