Guest User

Untitled

a guest
Jun 23rd, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. local money = 2000--Hur mkt pengar kostar de?;>
  2. local bpID = 2000--ID på Backpack
  3. local fA = 20--Hur många fluids?
  4. local fiID = 2006--Fluid itemID
  5. local fID = 10--Fluid ID
  6. function onSay(cid,words,param)
  7. if(doPlayerRemoveMoney(cid, money)) then
  8. local newBP = doCreateItemEx(bpID, 1)
  9. for i = 1, fA do
  10. doAddContainerItem(newBP, fiID, fID)
  11. end
  12. doPlayerAddItemEx(cid, newBP)
  13. doCreatureSay(cid, "BP LifeFluid!", TALKTYPE_ORANGE_1)
  14. else
  15. doPlayerSendCancel(cid, "You dont have enough money to buy a backpack of lifefluids! " .. money/1000 .. "k")
  16. end
  17. return true
  18. end
Add Comment
Please, Sign In to add comment