local t = {
level = 300,
pos = {x=247, y=659, z=13}
}
function onStepIn(cid, item, position, fromPosition)
if isPlayer(cid) then
local k = getPlayerLevel(cid) >= t.level
doTeleportThing(cid, k and t.pos or fromPosition)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, k and 'Enjoy Going where you are going.' or 'You need level ' .. t.level .. ' to go through here.')
end
end