hello, i have just tried to make a tile where u can stand on it if you are atleast level 2,000.
but it didn't work with me :/
heres the script:
anyone can fix it please? :]
but it didn't work with me :/
heres the script:
Code:
<movevent type="StepIn" uniqueid="7896" event="script" value="leveltile.lua"/>
Code:
function onStepIn(cid, item, pos)
local newPosition = {x = position.x, y = position.y, z = position.z}
reqlevel = 2000
if reqlevel > 0 then
if getPlayerLevel(cid) >= reqlevel then
pos = getPlayerPosition(cid)
doPlayerSendTextMessage(cid,22,'You can pass Safly')
else
newPosition.y = newPosition.y - 1
doTeleportThing(cid,pos)
doPlayerSendTextMessage(cid,22,'You need level ' .. reqlevel .. ' to pass Area')
end
return 1
else
return 0
end
end