03.10.2015, 16:23
It's not a weird bug, you are looping through all players; checking if they are in a vehicle, checking if they are driver and then processing it.
What you probably want to do is have the fuel decrease for all vehicles where the engine is on. This can be done by instead looping through all vehicles, checking if their engine is on and decreasing the fuel accordingly. You also don't check if the vehicle's engine is on(not sure if you forgot about this or not - the fuel will go down even if the engine is off).
What you probably want to do is have the fuel decrease for all vehicles where the engine is on. This can be done by instead looping through all vehicles, checking if their engine is on and decreasing the fuel accordingly. You also don't check if the vehicle's engine is on(not sure if you forgot about this or not - the fuel will go down even if the engine is off).