Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onUse(cid, item, frompos, item2, topos)
- a = {
- [8910] = {{2160, 10}, {12604, 1}},
- [8911] = {{12603, 1}, {12604, 1}},
- [8912] = {{12603, 1}, {12604, 1}},
- [8913] = {{12603, 1}, {12604, 1}},
- }
- b = a[item.uid]
- r = math.random(1, #b+1)
- if r == #b+1 then
- doPlayerSendTextMessage(cid,22,"Sua bag rasgou.")
- else
- doPlayerAddItem(cid, b[r][1], b[r][2])
- doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você ganhou "..b[r][2].."x "..getItemNameById(b[r][1])..".")
- end
- doRemoveItem(item.uid)
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement