SA-MP Forums Archive
Police Flash. - 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)
+--- Thread: Police Flash. (/showthread.php?tid=450649)



Police Flash. - Fenky - 14.07.2013

Hello there! I want to ask how to make a police flash system with two kinds of speed? If I am a cop, I can use /flash in any car that has lights. Then the flash has two kinds of speed like 0.5s per time or 0.2s per time. (Normal and Chasing) And how to make the lights of vehicles can be ran in day but not only nights?


Respuesta: Police Flash. - Xabi - 14.07.2013

Use the function ManualVehicleEngineAndLights() in the callback OnGamemodeInit() to allow users to change the status of the lights/engine. After that, just make a timer with the desired time that switched on/off the lights of the vehicle; you can use the functions GetVehicleParamsEx and SetVehicleParamsEx for this.