get players in vehicle
#6

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.
Reply


Messages In This Thread
get players in vehicle - by Hirsw0w - 23.09.2014, 13:27
Re: get players in vehicle - by amirab - 23.09.2014, 13:32
Re: get players in vehicle - by Hirsw0w - 23.09.2014, 13:33
Re: get players in vehicle - by Hirsw0w - 23.09.2014, 16:55
Re: get players in vehicle - by XStormiest - 23.09.2014, 16:57
Re: get players in vehicle - by Vince - 23.09.2014, 17:30
Re: get players in vehicle - by Pottus - 23.09.2014, 17:54
Re : get players in vehicle - by streetpeace - 23.09.2014, 17:56
Re: get players in vehicle - by XStormiest - 23.09.2014, 18:10

Forum Jump:


Users browsing this thread: 1 Guest(s)