Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function giveMoney()
- for i,player in ipairs(getElementsByType('player')) do
- local acc = getPlayerAccount(player)
- if isGuestAccount(acc) then
- outputChatBox("#CEE3F6To receive money, you must be logged in.", player, 0, 0, 0, true)
- else
- if m_Setted[player] == 0 then
- if getElementData(player, "State") == "waiting" then
- return
- else
- if getElementData(player, "State") == "alive" then
- outputChatBox("You won $500 for this round.", player)
- givePlayerMoney(player, 500)
- p_Rank[player] = -255
- m_Setted[player] = 1
- end
- if p_Rank[player] == 2 then
- outputChatBox("You won $250 for this round.", player)
- givePlayerMoney(player, 250)
- m_Setted[player] = 1
- end
- if p_Rank[player] == 3 then
- outputChatBox("You won $200 for this round.", player)
- givePlayerMoney(player, 200)
- m_Setted[player] = 1
- end
- if p_Rank[player] == 4 then
- outputChatBox("You won $175 for this round.", player)
- givePlayerMoney(player, 175)
- m_Setted[player] = 1
- end
- if p_Rank[player] == 5 then
- outputChatBox("You won $150 for this round.", player)
- givePlayerMoney(player, 150)
- m_Setted[player] = 1
- end
- if p_Rank[player] == 6 then
- outputChatBox("You won $125 for this round.", player)
- givePlayerMoney(player, 125)
- m_Setted[player] = 1
- end
- if p_Rank[player] == 7 then
- outputChatBox("You won $100 for this round.", player)
- givePlayerMoney(player, 100)
- m_Setted[player] = 1
- end
- if p_Rank[player] == 8 then
- outputChatBox("You won $75 for this round.", player)
- givePlayerMoney(player, 75)
- m_Setted[player] = 1
- end
- if p_Rank[player] == 9 then
- outputChatBox("You won $50 for this round.", player)
- givePlayerMoney(player, 50)
- m_Setted[player] = 1
- end
- if p_Rank[player] > 9 then
- outputChatBox("You won $25 for this round.", player)
- givePlayerMoney(player, 25)
- m_Setted[player] = 1
- end
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement