SA-MP Forums Archive
Derby Spawn positions - 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: Derby Spawn positions (/showthread.php?tid=612463)



Derby Spawn positions - YoussefHammad - 18.07.2016

In derby players just do /derby and then they're sent to their positons, but how can i make that it checks if position is empty or not before sending the player ?

Thanks


Re: Derby Spawn positions - GuyB790 - 19.07.2016

Just have a set of positions in an array and put the playerids that join the derby in an array. Loop through both arrays and put the players in each position, this way you dont need to check if a position is taken or not.