1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12. | local config = {storneed = 12345, pos = {x = 172,y = 559,z = 13 }}
function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
playerstorage = getPlayerStorageValue(cid,config.storneed)
if playerstorage ~= -1 then
doTeleportThing(cid,cofig.pos)
else
doPlayerSendTextMessage(cid,22, "You CAN NOT use this teleport")
end
return true
end |