Advertisement
Guest User

Rola

a guest
Jan 28th, 2015
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. function onUse(cid, item, itemEx, toPosition, fromPosition)
  2.  
  3. local = stg = 298741
  4.  
  5. if not isPlayerPzLocked(cid) then
  6. if getPlayerStorageValue(cid, stg) < 1 then
  7. local function Rola(cid)
  8. if isCreature(cid) then
  9. setPlayerStorageValue(cid, stg, 1)
  10. doPlayerSendTextMessage(cid, 19, "Você será deslogado em 5 segundos ...")
  11. doRemoveCreature(cid)
  12. end
  13. end
  14. addEvent(Rola, 1000 * 5)
  15. else
  16. return doPlayerSendCancel(cid, "You have already been blessed.")
  17. end
  18. else
  19. return doPlayerSendCancel(cid, "You can not use this item now!")
  20. end
  21. return true
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement