Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onUse(cid, item, fromPosition, itemEx, toPosition)
- local player = Player(cid)
- local v = [item.actionid]
- if not v then
- return true
- end
- if player:getStorageValue(12345) then
- player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You need to wait" . . "before you can use it again.")
- player:sendMagicEffect(getThingPos, CONST_ME_POFF)
- else
- player:addItem(22718, 1)
- player:setStorageValue(12345, os.time 20*60*60)
- end
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement