Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onUse(cid, item, fromPosition, item2, toPosition)
- local storage = 75494543
- local premio = 2547
- local quantidade_premio = 1
- local slot_item = getPlayerSlotItem(cid, CONST_SLOT_AMMO).uid
- if slot_item < 1 and getPlayerStorageValue(cid, storage) < 1 then
- doPlayerAddItem(cid, premio, quantidade_premio)
- setPlayerStorageValue(cid, storage, 1)
- else if slot_item > 1 and getPlayerStorageValue(cid, storage) < 1 then
- doPlayerSendTextMessage(cid, 27, "Por favor, retire item ou poke que esta no segundo slot para poder pegar!"")
- end
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement