[FilterScript] [FS] Simple Vehicle Light's System
#1

[FS] Simple Vehicle Lights
_________________________________________________
This filterscript will allow you to toggle your vehicle lights on/off, it will save the status of the vehicle lights so if they are turned off, and you re-enter the vehicle, the lights will still be switched off.
After thinking i was the first to actually release this kind of filterscript i was quickly uploading, but sadly enough i was beaten, but i decided to release it anyway.

How to use:
You can toggle your vehicle lights on/off by pressing the ACTION (CTRL) key.
If you exit your vehicle with your lights OFF when you re-enter the vehicle the lights will be OFF (presuming no one has entered the vehicle and turned the lights on).

Thanks to JernejL (RedShirt) for the damage encoding code snippet.

Bugs:
~ You cannot use your lights in day time. (default in san andreas).

(REPLACE LINE 63 WITH)
pawn Code:
if (IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
Download
(includes .amx & .pwn)

PASTEBIN
http://pastebin.com/dFCs7Y5n

Feel free to edit it to how you need it, but please don't re-release as your own.

Don't post comments saying this has already been released, please read my post first.

EDIT:
Fixed the vehicle repair problem
Reply


Messages In This Thread
[FS] Simple Vehicle Light's System - by Anwix - 25.03.2010, 00:23
Re: [FS] Simple Vehicle Light's System - by IDownload - 25.03.2010, 01:08
Re: [FS] Simple Vehicle Light's System - by mick88 - 25.03.2010, 01:40
Re: [FS] Simple Vehicle Light's System - by jame20702 - 25.03.2010, 02:23
Re: [FS] Simple Vehicle Light's System - by IDownload - 25.03.2010, 02:25
Re: [FS] Simple Vehicle Light's System - by Anwix - 25.03.2010, 14:27
Re: [FS] Simple Vehicle Light's System - by DauerDicht - 25.03.2010, 15:49
Re: [FS] Simple Vehicle Light's System - by Anwix - 25.03.2010, 15:59
Re: [FS] Simple Vehicle Light's System - by DauerDicht - 25.03.2010, 16:01
Re: [FS] Simple Vehicle Light's System - by Zimon95 - 25.03.2010, 16:02
Re: [FS] Simple Vehicle Light's System - by XRVX - 25.03.2010, 16:14
Re: [FS] Simple Vehicle Light's System - by 77ther - 25.03.2010, 16:21
Re: [FS] Simple Vehicle Light's System - by DauerDicht - 25.03.2010, 19:03
Re: [FS] Simple Vehicle Light's System - by laser50 - 25.03.2010, 19:21
Re: [FS] Simple Vehicle Light's System - by [MK]Soprano - 25.03.2010, 19:37
Re: [FS] Simple Vehicle Light's System - by Anwix - 25.03.2010, 19:59
Re: [FS] Simple Vehicle Light's System - by DauerDicht - 25.03.2010, 21:44
Re: [FS] Simple Vehicle Light's System - by Anwix - 27.03.2010, 12:57
Re: [FS] Simple Vehicle Light's System - by laser50 - 28.03.2010, 19:40
Re: [FS] Simple Vehicle Light's System - by BanSilog - 11.05.2018, 06:01
Re: [FS] Simple Vehicle Light's System - by Pillhead2007 - 14.05.2018, 20:54

Forum Jump:


Users browsing this thread: 15 Guest(s)