06.09.2013, 08:44
How to teleport player and if he is in veh to teleport the player in veh...
if(!IsPlayerInAnyVehicle(playerid)) SetPlayerPos(playerid, ...); // Check if player is NOT in any vehicle and sets the player's position.
else SetVehiclePos(GetPlayerVehicleID(playerid), ...); // Else (If he is in a vehicle) set the vehicle's position.
@Dragonsaurus: Checking if a player is vehicle is not that good. If someone is passenger, it will teleport the vehicle instead of removing the player and teleport them on foot.
|