Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onUse(cid, item, frompos, item2, topos)
- local cfg = {
- trapId = 8807,
- appearMinutes = 5,
- trapPos = {x = 1014, y = 1030, z = 14, stackpos = 1},
- }
- if getGlobalStorageValue(13199) > os.time() then
- doPlayerSendTextMessage(cid, 27, "Wait "..cfg.appearMinutes.." minutes to remove the wall again!")
- return true
- end
- addEvent(doCreateItem, cfg.appearMinutes*60*1000, cfg.trapId, 1, cfg.trapPos)
- setGlobalStorageValue(13199, os.time() + cfg.appearMinutes*60*1000)
- doRemoveItem(getThingFromPos(cfg.trapPos).uid)
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement