Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onUse(cid, item, itemEx, toPosition, fromPosition)
- local = stg = 298741
- if not isPlayerPzLocked(cid) then
- if getPlayerStorageValue(cid, stg) < 1 then
- local function Rola(cid)
- if isCreature(cid) then
- setPlayerStorageValue(cid, stg, 1)
- doPlayerSendTextMessage(cid, 19, "Você será deslogado em 5 segundos ...")
- doRemoveCreature(cid)
- end
- end
- addEvent(Rola, 1000 * 5)
- else
- return doPlayerSendCancel(cid, "You have already been blessed.")
- end
- else
- return doPlayerSendCancel(cid, "You can not use this item now!")
- end
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement