Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function ENT:AcceptInput(activator)
- if(activator==IN_USE)then
- local Tab,Num=activator.darkRPPocket or {},0
- for activator,item in pairs(Tab)do
- if(item.Class=="bitcoin_coin")then
- local Bag=activator:dropPocketItem(activator)
- if(Bag)then SafeRemoveEntity(Bag) end
- Num=Num+1
- if(Num>0)then
- local SoldCoins=Num*5000-- price per coin
- activator:addMoney(SoldCoins)
- DarkRP.notify(activator,4,4,"Bitcoin(s) sold for $"..tostring(SoldCoins))
- end
- end
- end
- end
- end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement