function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
local v,p = getThingPos(cid),{x=1,y=1,z=1} -- CHANGE THE {} TO YOUR LIKINGS.
if isPlayer(cid) then
if getPlayerLevel(cid) <= 50 then
doTeleportThing(cid,p)
doSendMagicEffect(v,10)
else
doTeleportThing(cid,fromPosition)
doSendMagicEffect(v,10)
doPlayerSendTextMessage(cid,27,'Only players of level 50 and lower allowed.')
end
end
return true
end