20.03.2013, 05:27
I would use OnPlayerStateChange and check if PLAYER_STATE_PASSENGER and if not RemovePlayerFromVehicle
Because The onplayerentervehicle is called every time a player hits the G button(or the F button) , and if he hits it 2 times he can't enter the vehicle because first time BoughtTicket[playerid] will be set to 1 and when he pres the second time G it will set his position and will not be able to enter the vehicle and it will have to buy another ticket
Because The onplayerentervehicle is called every time a player hits the G button(or the F button) , and if he hits it 2 times he can't enter the vehicle because first time BoughtTicket[playerid] will be set to 1 and when he pres the second time G it will set his position and will not be able to enter the vehicle and it will have to buy another ticket