21.07.2013, 21:05
You should set the PVar "Message" to 0 again if the player enters a vehicle in OnPlayerStateChange (if you didnt do that already).
Does the Command /Engine work correctly after you did ^ this?
Furthermore, I would rather use a timer for this than OnPlayerUpdate (OnPlayerUpdate gets called pretty often, the timer can be set to 1 second), also the Broken variable is not really needed, because you can check the vehicle's health in the CMD again, which makes it more safe.
Does the Command /Engine work correctly after you did ^ this?
Furthermore, I would rather use a timer for this than OnPlayerUpdate (OnPlayerUpdate gets called pretty often, the timer can be set to 1 second), also the Broken variable is not really needed, because you can check the vehicle's health in the CMD again, which makes it more safe.