Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Ola meus amigos tudo bem hoje vou ensinar a faser uma porta com teclado mas e esso o script lua
- function onUse(cid, item, fromPosition, itemEx, toPosition)
- local toPos = {x = fromPosition.x, y = fromPosition.y -2, z = fromPosition.z}
- if getPlayerItemById(cid, deepSearch, 2159) == 0 then
- return doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "This door seems to be sealed against unwanted intruders.")
- end
- if getPlayerItemById(cid, deepSearch, 2159) == 1 then
- if item.itemid == 2159 then return false end
- doTeleportThing(cid, toPosition, TRUE)
- else
- doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You may pass.")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement