03.12.2011, 23:52
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:
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.
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
p.s. i know others hav this idea.. this is just my opinion on it.