SA-MP Forums Archive
Slots - 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)
+--- Thread: Slots (/showthread.php?tid=632723)



Slots - silverms - 18.04.2017

so I'm trying to work on a car system that u reset your car and I want it to got the nearest pd but the problem is all the cars spawning above each other is there a way to do so if this slot have car and the other doesn't the car spawn in the other?


Re: Slots - GangstaSunny. - 18.04.2017

Start a loop trough all vehicles and check if any vehicle is near to the position of slot one. If so, spawn the car in slot 2. If one is in slot 2 but not slot 1, spawn in slot 1. etc etc