Public feed #887666

Someone

public text v1 · immutable
Raw Edit
·published 2008-02-01 14:35 UTC
rendered paste body
function teleport_Wangs(source, cmd)
	local vehicle = getPlayerOccupiedVehicle(source)
	if vehicle then
		local rx, ry, rz = getVehicleRotation(vehicle)
		setCameraMode(source, "fixed")
		setElementVelocity(vehicle, 0, 0, 0)
		setVehicleRotation(vehicle, rx, ry, 180.0)
		setElementPosition(vehicle, -1914.9218, 289.8815, 48.0000) -- Wang Cars
		setTimer(setCameraMode, 200, 1, source, "player")	
	else
		setElementPosition(source, -1914.9218, 289.8815, 43.3773) -- Wang Cars
	end
end
addCommandHandler("wangs", teleport_Wangs)