Traffic Light Control
#1

Hello everyone. I am going to tell you all about a little idea I have for SA-MP in the future. Here it is:

Script controlled traffic lights. Now, I was thinking.. if someone wants control over ALL the lights in the game SEPERATELY, how would they know which onw they're working with? The answer is this: create a map (picture) of all the traffic lights in the game. Then, you could put an id on each one. And the way you control them could be like this:
Код:
SetTrafficLightState(id, state);
GetTrafficLightStare(id);
ToggleNormalLights(toggle); //makes them controlled by game like normal or not

//states
1 - red
2 - yellow
0 - green
Now, the best way to do this, I think, is use the code of the RemoveBuilding thingy to remove all the lights and then put in blank lights and then make controllable fx and put them in front of the lights. I know it's a stretch, but... I would be soooooo happy to see it. I understand that it would require hours of work, but if someone makes this.. I hope that it will be included in the next release. Also, this is NOT a request thread, but an idea thread. :P Anyway, thanks for reading! CYA!

p.s. i know others hav this idea.. this is just my opinion on it.
Reply


Messages In This Thread
Traffic Light Control - by sciman001 - 03.12.2011, 23:52
Re: Traffic Light Control - by -Rebel Son- - 03.12.2011, 23:56
Re: Traffic Light Control - by sciman001 - 03.12.2011, 23:56
Re: Traffic Light Control - by dr.pepper - 04.12.2011, 00:33
Re: Traffic Light Control - by sciman001 - 04.12.2011, 00:46
Re: Traffic Light Control - by Scenario - 04.12.2011, 02:55
Re: Traffic Light Control - by teomakedonija - 06.01.2013, 14:34
Re: Traffic Light Control - by InActtive™ - 06.01.2013, 14:40
Re: Traffic Light Control - by Biess - 06.01.2013, 16:11
Re: Traffic Light Control - by nilanjay - 06.01.2013, 16:14

Forum Jump:


Users browsing this thread: 3 Guest(s)