30.11.2012, 15:29
First of all, read this: https://sampforum.blast.hk/showthread.php?tid=395711
Second and last of all - Check if player is in any vehicle by using IsPlayerInAnyVehicle. If he is, use GetPlayerVehicleID to get vehicle's ID, then GetVehiclePos and SetVehiclePos for the teleport.
Second and last of all - Check if player is in any vehicle by using IsPlayerInAnyVehicle. If he is, use GetPlayerVehicleID to get vehicle's ID, then GetVehiclePos and SetVehiclePos for the teleport.