Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Held Itens by GabrielTxu --
- local Held = {
- [2711] = {name = "x-Agility t1", storage = "5555", time = 1, speed = 1000},
- }
- function onUse(cid, item, fromPosition, itemEx, toPosition)
- if not Held[item.itemid] then return false end
- hed = Held[item.itemid]
- if exhaustion.check(cid, hed.storage) then
- doPlayerSendCancel(cid, "Você já esta segurando esse held.")
- return false
- end
- doPlayerSendTextMessage(cid, 27, "Parabéns, agora você esta segurando um "..hed.name.."!")
- setPlayerStorageValue(cid, hed.storage)
- doChangeSpeed(cid, hed.speed)
- doRemoveItem(item.uid, 1)
- exhaustion.set(cid, hed.storage, hed.time)
- return false
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement