Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onSay(cid, words, param)
- local slot = getPlayerSlotItem(cid, 3)
- local items = getContainerItems(slot.uid)
- local backpack = false
- for _, array in pairs(items) do
- if array.itemid == 2160 then
- if getContainerSlotsFree(array.uid) >= 1 then
- backpack = true
- doPlayerSendTextMessage(cid, 27, "Foi adicionado 100, 2160 em sua bag secundaria")
- doAddContainerItem(array.uid, 2160, 100)
- break
- end
- end
- end
- if not backpack then
- doPlayerSendTextMessage(cid, 27, "Você não tem uma bag.")
- end
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement