Get vehicle free seat ID
#4

Quote:
Originally Posted by ranme15
Посмотреть сообщение
You could use a loop to check whoever in the vehicle, then using GetPlayerVehicleSeat function to check whether seats are full or not.
Quote:
Originally Posted by Dennis12
Посмотреть сообщение
Mhm, I think this could help you:

Код:
stock getSeatStatus(const vID, const seatID)
{
	for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++)
	{
		if(GetPlayerVehicleID(i) == vID && GetPlayerVehicleSeat(i) == seatID)
			return true; 
	}
	return false; 
}
Thank a lot bro
Reply


Messages In This Thread
Get vehicle free seat ID - by 3417512908 - 28.12.2018, 04:07
Re: Get vehicle free seat ID - by ranme15 - 28.12.2018, 07:42
Re: Get vehicle free seat ID - by Dennis12 - 28.12.2018, 11:15
Re: Get vehicle free seat ID - by 3417512908 - 28.12.2018, 11:41
Re: Get vehicle free seat ID - by BeckzyBoi - 28.12.2018, 17:33
Re: Get vehicle free seat ID - by Threshold - 29.12.2018, 10:12

Forum Jump:


Users browsing this thread: 2 Guest(s)