Guest User

Untitled

a guest
Dec 8th, 2019
79
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function onUse(cid, item, fromPosition, item2, toPosition)
  2. local storage = 75494543
  3. local premio = 2547
  4. local quantidade_premio = 1
  5.  
  6. local slot_item = getPlayerSlotItem(cid, CONST_SLOT_AMMO).uid
  7. if slot_item < 1 and getPlayerStorageValue(cid, storage) < 1 then
  8. doPlayerAddItem(cid, premio, quantidade_premio)
  9. setPlayerStorageValue(cid, storage, 1)
  10. else if slot_item > 1 and getPlayerStorageValue(cid, storage) < 1 then
  11. doPlayerSendTextMessage(cid, 27, "Por favor, retire item ou poke que esta no segundo slot para poder pegar!"")
  12. end
  13. return true
  14. end
RAW Paste Data