Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Root = getRootElement()
- rRoot = getResourceRootElement()
- cplayer = getLocalPlayer()
- przedmiotylosowane = {
- --{nazwaprzedmiotu,ile za to dostaje gracz}
- {"Bursztyn",150},
- {"Złom",75},
- }
- addCommandHandler("losuj",function(cmd)
- p = math.random(1,2)
- --for
- --if p <= przedmiotylosowane[2]
- outputChatBox(""..przedmiotylosowane[p][1].." $"..przedmiotylosowane[p][2].."!" )
- local kasa = getPlayerMoney( cplayer )
- setPlayerMoney(kasa+przedmiotylosowane[p][2],false)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement