27.05.2009, 13:31
True but if you look at the parameters of the callback:
You can use the parameter vehicleid and it will still return the id of the vehicle the player is trying to get into, even they don't manage it. It's a bad idea to make this script using this callback because it'll display the gametext before you're in the vehicle. Use OnPlayerStateChange instead.
Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)