Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local cfg = {
- delay = 20, -- Em segundos
- storage = 21097, -- Não Precisa Alterar
- }
- function onDeEquip(cid, item, slot)
- if isPlayer(cid) then
- setPlayerStorageValue(cid, cfg.storage, (os.time() + cfg.delay))
- return true
- end
- end
- function onEquip(cid, item, slot)
- if isPlayer(cid) then
- if getPlayerStorageValue(cid, cfg.storage) == -1 or getPlayerStorageValue(cid, cfg.storage) <= os.time() then
- return true
- else
- wait = (getPlayerStorageValue(cid, cfg.storage)-os.time())
- doSendAnimatedText(getThingPos(cid), "Wait "..wait.." seconds", COLOR_WHITE)
- return false
- end
- end
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment