Advertisement
Guest User

Untitled

a guest
Jan 27th, 2015
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.68 KB | None | 0 0
  1. -- Held Itens by GabrielTxu --
  2. local Held = {
  3. [2711] = {name = "x-Agility t1", storage = "5555", time = 1, speed = 1000},
  4.  
  5. }
  6. function onUse(cid, item, fromPosition, itemEx, toPosition)
  7. if not Held[item.itemid] then return false end
  8.         hed = Held[item.itemid]
  9.     if exhaustion.check(cid, hed.storage) then
  10.                 doPlayerSendCancel(cid, "Você já esta segurando esse held.")
  11.         return false
  12.         end
  13.         doPlayerSendTextMessage(cid, 27, "Parabéns, agora você esta segurando um "..hed.name.."!")
  14.         setPlayerStorageValue(cid, hed.storage)
  15.         doChangeSpeed(cid, hed.speed)
  16.         doRemoveItem(item.uid, 1)
  17.         exhaustion.set(cid, hed.storage, hed.time)
  18.         return false   
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement