23.09.2014, 17:30
I suppose you could use foreach to create an iterator for each vehicle. But that array would be huge since you need to allocate 2000 vehicles, multiplied by the number of available seats. Then when the player enters the vehicle you push their playerid onto the array. Whenever you need to get the players in the car you use a foreach statement. This'd loop through about 4 values or so. I believe a bus can seat 8 players, though.