Lo intenté así pero me dice bad argument en la linea 19.
Area = createColRectangle ( -2535.9562988281, 1498.9573974609, 300, 800 )
Radar = createRadarArea ( -2535.9562988281, 1498.9573974609, 300, 800, 255, 0, 0, 150 )
posX = 0
posY = 0
posZ = 0
function Boat ( thePlayer, matchingDimension )
if (getElementType(thePlayer) == "player") then
outputChatBox( getPlayerName(thePlayer) .. "Estás en la Zona.Presiona F7 si queres entrar.", thePlayer, 0, 200, 0 )
setElementPosition( thePlayer, posX, posY, posZ)
end
end
function StartKey()
addEventHandler ( "onColShapeHit", Area, Boat )
end
bindKey(thePlayer,"F7","down", StartKey)
function outBoat ( thePlayer, matchingDimension )
if (getElementType(thePlayer) == "player") then
unbindKey(thePlayer,"F7","down", outBoat)
end
end
addEventHandler ( "onColShapeLeave", Area, outBoat )