SA-MP Forums Archive
Car caution. - 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: Car caution. (/showthread.php?tid=204495)



Car caution. - Rokzlive - 29.12.2010

Hi.

I want to make it so that when a player his C, (c key on keyboard) or says /caution, it disables their engine (turns it off) and makes their lights start flashing (like they are broken down), and if the hit C again it disabled it.

How would i do that? (Im using 0.3c)


Re: Car caution. - Jochemd - 29.12.2010

To help you starting:

- Press C [Key Crouch] -> Set a Timer which makes the lights flashing: if(lights == 0) lights = 1; if(lights == 1) lights == 0)

Hope that helped you ^^