SHARE
TWEET

Untitled

a guest Dec 8th, 2019 71 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top