function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerLevel(cid)>= 200 and getPlayerLevel(cid) <= 400 then
return true
else
doPlayerSendTextMessage(cid, 22, "You need to be between level 200 and 400 to enter this door!")
end
end
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerLevel(cid)=> 200 and getPlayerLevel(cid) <= 400 then
return true
else
doPlayerSendTextMessage(cid, 22, "You need to be between level 200 and 400 to enter this door!")
end
end
local truepos = {x=1000, y=1000, z=7}
function onStepIn(cid, frompos, topos) -- You might need to edit this part as i cant remember the entire function
if getPlayerLevel(cid) >= Place_level then
doTeleportThing(cid, truepos, TRUE)
doCreatureSay(cid, "You can pass!", 19)
elseif getPlayerLevel(cid) <= 19 then
doCreatureSay(cid, "You are not high enough level to pass!", 19)
doTeleportThing(cid, truepos, FALSE)
end
return true
end