Advertisement
Guest User

dfgdfgdfg

a guest
Apr 19th, 2015
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.46 KB | None | 0 0
  1. --------------------------
  2. --        PROXY         --
  3. --------------------------
  4.  
  5.         -- Dice message --
  6. local dice = {}
  7. dice.high = {"Roof Again But Mag rolled a 4.", "Roof Again But Mag rolled a 5.", "Roof Again But Mag rolled a 6."}
  8. dice.low ={"Roof Again But Mag rolled a 1.", "Roof Again But Mag rolled a 2.", "Roof Again But Mag rolled a 3."}
  9.  
  10.  
  11. EffectMessageProxy.OnReceive("myproxy", function(proxy, msg)
  12. for i,bet in ipairs(bets) do    
  13. if begin.finished and not idle and not begin.off then
  14.     if numberH and table.find(dice.high, msg) then
  15.         win_cash = math.floor(player_cash *((bet.payout/100) +1))
  16.         if win_cash < 40 and win_cash > 0 then
  17.             Self.Say(""..(win_cash*10).."k")
  18.             profit = (profit - (math.floor(win_cash - player_cash))/100)
  19.             balance:SetText("balance "..profit.."kk")
  20.             numberH = nil
  21.             pay_out = true
  22.         end
  23.         if win_cash >= 40 then
  24.             Self.Say(""..(win_cash/100).."kk")
  25.             profit = (profit - (math.floor(win_cash - player_cash))/100)
  26.             balance:SetText("balance "..profit.."kk")
  27.             numberH = nil
  28.             pay_out = true
  29.         end
  30.     end
  31.     if numberH and table.find(dice.low, msg) then
  32.         palyer_lose = player_cash-player_cash
  33.         Self.Say(player_lose)
  34.         profit = (profit + (math.floor(player_cash))/100)
  35.         balance:SetText("balance "..profit.."kk")
  36.         numberH = nil
  37.     end
  38.     if numberL and table.find(dice.low, msg) then
  39.         win_cash = math.floor(player_cash *((bet.payout/100) +1))
  40.             if win_cash < 40 and win_cash > 0 then
  41.                 Self.Say(""..(win_cash*10).."k")
  42.                 profit = (profit - (math.floor(win_cash - player_cash))/100)
  43.                 balance:SetText("balance "..profit.."kk")
  44.                 numberL = nil
  45.                 pay_out = true
  46.             end
  47.             if win_cash >= 40 then
  48.                 Self.Say(""..(win_cash/100).."kk")
  49.                 profit = (profit - (math.floor(win_cash - player_cash))/100)
  50.                 balance:SetText("balance "..profit.."kk")
  51.                 numberL = nil
  52.                 pay_out = true
  53.             end
  54.     end
  55.     if numberL and table.find(dice.high, msg) then
  56.         palyer_lose = player_cash-player_cash
  57.         Self.Say(player_lose)
  58.         profit = (profit + (math.floor(player_cash))/100)
  59.         balance:SetText("balance "..profit.."kk")
  60.         numberL = nil
  61.     end
  62. end
  63. end
  64. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement