SA-MP Forums Archive
Alarm in SetVehicleParamsEx - 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: Alarm in SetVehicleParamsEx (/showthread.php?tid=194463)



Alarm in SetVehicleParamsEx - Flyfishes - 29.11.2010

What does the alarm variable function do?
Код:
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);



Re: Alarm in SetVehicleParamsEx - kurta999 - 29.11.2010

Sorry, wrong thread.


Re: Alarm in SetVehicleParamsEx - BloodyEric - 29.11.2010

Makes the single-player-car alarm-things. The lights will flash and there will be a sound coming from the car.


Re: Alarm in SetVehicleParamsEx - Flyfishes - 29.11.2010

Like the EMS mod then? Okay, thanks!


Re: Alarm in SetVehicleParamsEx - scottyishere - 29.11.2010

Quote:
Originally Posted by BloodyEric
Посмотреть сообщение
Makes the single-player-car alarm-things. The lights will flash and there will be a sound coming from the car.
For an unknown reason, car lights don't flash when alarm is active :/

I'm using the Manual mode in OnGameModeInit

Maybe this can be fixed?

Feedback


Re: Alarm in SetVehicleParamsEx - BloodyEric - 29.11.2010

I just tested it, if Manual mode is used there are no lights flashing, otherwise they work fine.


Re: Alarm in SetVehicleParamsEx - DVDK - 29.11.2010

Quote:
Originally Posted by BloodyEric
Посмотреть сообщение
I just tested it, if Manual mode is used there are no lights flashing, otherwise they work fine.
Engine must be on first, and there has to be somebody driving it.


Re: Alarm in SetVehicleParamsEx - BloodyEric - 29.11.2010

Manual mode was on, Engine was on, I was the driver and there still was only the noise but not the light.


Re: Alarm in SetVehicleParamsEx - niCe - 30.11.2010

Then also put the lights on.