Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local money = 2000--Hur mkt pengar kostar de?;>
- local bpID = 2000--ID på Backpack
- local fA = 20--Hur många fluids?
- local fiID = 2006--Fluid itemID
- local fID = 10--Fluid ID
- function onSay(cid,words,param)
- if(doPlayerRemoveMoney(cid, money)) then
- local newBP = doCreateItemEx(bpID, 1)
- for i = 1, fA do
- doAddContainerItem(newBP, fiID, fID)
- end
- doPlayerAddItemEx(cid, newBP)
- doCreatureSay(cid, "BP LifeFluid!", TALKTYPE_ORANGE_1)
- else
- doPlayerSendCancel(cid, "You dont have enough money to buy a backpack of lifefluids! " .. money/1000 .. "k")
- end
- return true
- end
Add Comment
Please, Sign In to add comment