function onStepIn(cid, item, pos)
local place = {x=32716, y=32346, z=7} --Place you want the tp to go
local cidstorage = 1155
local cidpos = getPlayerPosition(cid)
if getPlayerStorageValue(cid, cidstorage) == -1 then
setPlayerStorageValue(cid,30,1)
doTeleportThing(cid, place, FALSE)
doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You can pass.")
else
doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You've already gone there")
doTeleportThing(cid, {x = cidpos.x, y = cidpos.y+1 , z = cidpos.z}, FALSE)
end
return TRUE
end