Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --------------------------
- -- PROXY --
- --------------------------
- -- Dice message --
- local dice = {}
- dice.high = {"Roof Again But Mag rolled a 4.", "Roof Again But Mag rolled a 5.", "Roof Again But Mag rolled a 6."}
- dice.low ={"Roof Again But Mag rolled a 1.", "Roof Again But Mag rolled a 2.", "Roof Again But Mag rolled a 3."}
- EffectMessageProxy.OnReceive("myproxy", function(proxy, msg)
- for i,bet in ipairs(bets) do
- if begin.finished and not idle and not begin.off then
- if numberH and table.find(dice.high, msg) then
- win_cash = math.floor(player_cash *((bet.payout/100) +1))
- if win_cash < 40 and win_cash > 0 then
- Self.Say(""..(win_cash*10).."k")
- profit = (profit - (math.floor(win_cash - player_cash))/100)
- balance:SetText("balance "..profit.."kk")
- numberH = nil
- pay_out = true
- end
- if win_cash >= 40 then
- Self.Say(""..(win_cash/100).."kk")
- profit = (profit - (math.floor(win_cash - player_cash))/100)
- balance:SetText("balance "..profit.."kk")
- numberH = nil
- pay_out = true
- end
- end
- if numberH and table.find(dice.low, msg) then
- palyer_lose = player_cash-player_cash
- Self.Say(player_lose)
- profit = (profit + (math.floor(player_cash))/100)
- balance:SetText("balance "..profit.."kk")
- numberH = nil
- end
- if numberL and table.find(dice.low, msg) then
- win_cash = math.floor(player_cash *((bet.payout/100) +1))
- if win_cash < 40 and win_cash > 0 then
- Self.Say(""..(win_cash*10).."k")
- profit = (profit - (math.floor(win_cash - player_cash))/100)
- balance:SetText("balance "..profit.."kk")
- numberL = nil
- pay_out = true
- end
- if win_cash >= 40 then
- Self.Say(""..(win_cash/100).."kk")
- profit = (profit - (math.floor(win_cash - player_cash))/100)
- balance:SetText("balance "..profit.."kk")
- numberL = nil
- pay_out = true
- end
- end
- if numberL and table.find(dice.high, msg) then
- palyer_lose = player_cash-player_cash
- Self.Say(player_lose)
- profit = (profit + (math.floor(player_cash))/100)
- balance:SetText("balance "..profit.."kk")
- numberL = nil
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement