08.09.2013, 15:02
It removes the player, the player does not press enter/f to exit the vehicle so it will be called.
So:
Or
Use OnPlayerStateChange instead. If the oldstate was driver and the newstate is different from driver (to prevent /getin command - if you have) and do the rest.
So:
Quote:
CreateVehicle(modelid, Float: x, Float:y, Float:z, Float:angle, color1, color2, respawn_delay - The delay until the car is respawned without a driver in seconds);
or AddStaticVehicleEx(modelid, Float: x, Float:y, Float:z, Float:angle, color1, color2, respawn_delay - The delay until the car is respawned without a driver in seconds); When player exit from behicle after x seconds vehicle will be respawned. |
Use OnPlayerStateChange instead. If the oldstate was driver and the newstate is different from driver (to prevent /getin command - if you have) and do the rest.