local nPos = {x=33023, y=32436, z=12}
function onStepIn(cid, item, pos)
if isPlayer(cid) == TRUE then
tele = getPlayerStorageValue(cid,61163)
if tele == 1 then
doTeleportThing(cid, nPos)
doSendMagicEffect(nPos, CONST_ME_ENERGYAREA)
doCreatureSay(cid, "Welcome!", TALKTYPE_ORANGE_1)
else
doPlayerSendCancel(cid, "You are not aloud to enter.")
end
end
return TRUE
end