SA-MP Forums Archive
stoplight question - 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: stoplight question (/showthread.php?tid=160963)



stoplight question - admine - 18.07.2010

I had a question, you have a script like
if you drive a car through a red light that you get
to see that you are not allowed to drive through red and 3
warnings that you fined


Re: stoplight question - [SVRPG]Falcon - 18.07.2010

Afaik there is no callback for the traffic lights (yet).
So you aren't able to do this.
Maybe there is another way how you can do this, but I wouldn't know how.


Re: stoplight question - Mauzen - 18.07.2010

If Im not totally wrong, kye or some other developer once said, the traffic lights ARE synced now, meaning, they are switching at the same time for everyone.

So it could be possible, to check how long a traffic light is red/green and check it with a timer. But thats a lot of work, dont know if it would be worth it

Edit: lol, 100. post

Edit 2: Or you can script your own traffic lights using Textlabels.


Re: stoplight question - bartje01 - 18.07.2010

I see that you are working on a RP server.
Let the cops handel that


Re: stoplight question - aNdReSk - 18.07.2010

if they are synch good luck making a timer couting the seconds they take to change


Re: stoplight question - admine - 19.07.2010

Quote:
Originally Posted by bartje01
Посмотреть сообщение
I see that you are working on a RP server.
Let the cops handel that
en met wat voor bedoelingen bedoel jij dit? dutch«


Re: stoplight question - bartje01 - 19.07.2010

Quote:
Originally Posted by admine
Посмотреть сообщение
en met wat voor bedoelingen bedoel jij dit? dutch«
Well. Cops have to fine people that drive trough a red light. If cops sees that someone doesn't stops for a red light the cops have to pull him over.