function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
if(not isPlayer(cid)) then
return true
end
if(getPlayerLevel(cid) < 300) then
doTeleportThing(cid, fromPosition, true)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You need level 300 to go through here.")
end
return true
end
function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
if(not isPlayer(cid)) then
return true
end
if(getPlayerLevel(cid) < 300) then
doTeleportThing(cid, fromPosition, true)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You need level 300 to go through here.")
else
local destination = {x = 247, y = 659, z = 13}
doTeleportThing(cid, destination, true)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Enjoy Going where you are going.")
end
return true
end
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
Code: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
You have to post better version 24/7, Every Post you see?
It's one of no lifer's features. ;d
It's one of no lifer's features. ;d