Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tfm.exec.disableAutoNewGame(true)
- tfm.exec.disableAutoScore(true)
- tfm.exec.disableAutoShaman(true)
- tfm.exec.disableAutoTimeLeft(true)
- tfm.exec.disableAfkDeath(true)
- maps = {5077834, 5079033, 6705799, 1200162, 453645, 2024625, 679638, 7015007, 6960893, 6705794, 6877494, 2162591, 2185317, 2333793, 5545395, 5642274, 6449075, 6705720, 6962466, 6940905, 6959036, 6959086, 6959630, 6960415, 6961673, 6963548, 6966613, 6967258, 6974090}
- tfm.exec.newGame(maps[math.random(#maps)])
- function eventPlayerWon(pN)
- tfm.exec.newGame(7016471)
- tfm.exec.movePlayer(pN, 500, 100)
- tfm.exec.setUIMapName("Winner room\n")
- end
- function eventPlayerDied(pN)
- tfm.exec.respawnPlayer(pN)
- end
- adminC = {Bendittt = 1}
- function eventChatCommand(n, c)
- if c == "Restart" and adminC[n] then
- tfm.exec.newGame(maps[math.random(#maps)])
- end
- end
- admin = "INGEN"
- adminC = {Bendittt = 1}
- cash = {}
- item = {}
- function eventNewPlayer(pN)
- item[pN] = 0
- ui.addTextArea(1, "<a href = 'event:derollshop'>Shop!</a>", pN, 6, 25, 100, 20, 0x111111, 0x111111, 1, true)
- system.bindMouse(pN, true)
- if pN == admin then
- cash[pN] = 20000
- else
- cash[pN] = 10 end
- ui.addTextArea(2, "You have "..cash[pN].." points!", pN, 625, 25, 170, 20, 0x111111, 0x111111, 1, true)
- end
- function eventLoop(eT, rT)
- for pN in pairs(tfm.get.room.playerList) do
- cash[pN] = cash[pN] + 0.2
- ui.updateTextArea(2, "You have "..cash[pN].." points", pN, 625, 25, 170, 20, 0x111111, 0x111111, 1, true)
- end
- end
- function eventTextAreaCallback(id, pN, req)
- if req == "derollshop" then
- ui.addTextArea(1, "<a href = 'event:rollshop'>Shop!</a>\n-> <a href = 'event:plank'>Plank - 20 points</a>\n-> <a href = 'event:frogballoon'>Frog balloon - 60 points</a>\n-> <a href = 'event:RK'>Random Kill - 300 points</a>\n-> <a href = 'event:skip!'>Skip map - 550 points</a>\n-> <a href = 'event:gambling'>Gamble - 225 points</a>\n-> <a href = 'event:triangle'>Cage - 300 points</a>\n-> <a href = 'event:1point'>Points reset - 0 points</a>", pN, 6, 25, 200, 115, 0x003568, 0x38FF00, 1, true)
- elseif req == "rollshop" then
- ui.addTextArea(1, "<a href = 'event:derollshop'>Shop!</a>", pN, 6, 25, 100, 20, 0x111111, 0x111111, 1, true)
- elseif req == "plank" then
- if cash[pN] >= 10 then
- cash[pN] = cash[pN] - 10
- item[pN] = 3 -- it's default plank id
- ui.updateTextArea(2, "You have "..cash[pN].." points!", pN, 625, 25, 170, 20, 0x111111, 0x111111, 1, true)
- end
- elseif req == "frogballoon" then
- if cash[pN] >= 60 then
- cash[pN] = cash[pN] - 60
- item[pN] = 2805
- ui.updateTextArea(2, "You have "..cash[pN].." points!", pN, 625, 25, 170, 20, 0x111111, 0x111111, 1, true)
- end
- elseif req == "RK" then
- if cash[pN] >= 300 then
- cash[pN] = cash[pN] - 300
- ui.updateTextArea(2, "You have "..cash[pN].." points!", pN, 625, 25, 170, 20, 0x111111, 0x111111, 1, true)
- players = {}
- for name,player in pairs(tfm.get.room.playerList) do
- table.insert(players,name)
- end
- tfm.exec.killPlayer(players[math.random(#players)])
- end
- elseif req == "skip!" then
- if cash[pN] >= 550 then
- cash[pN] = cash[pN] - 550
- ui.updateTextArea(2, "You have "..cash[pN].." points!", pN, 625, 25, 170, 20, 0x111111, 0x111111, 1, true)
- tfm.exec.newGame(maps[math.random(#maps)])
- tfm.exec.setUIMapName("BuildRace\n")
- end
- elseif req == "gambling" then
- if cash[pN] >= 225 then
- cash[pN] = cash[pN] + (money[math.random(#money)])
- ui.updateTextArea(2, "You have "..cash[pN].." points!", pN, 625, 25, 170, 20, 0x111111, 0x111111, 1, true)
- end
- elseif req == "triangle" then
- if cash[pN] >= 400 then
- cash[pN] = cash[pN] - 400
- item[pN] = 68
- ui.updateTextArea(2, "You have "..cash[pN].." points!", pN, 625, 25, 170, 20, 0x111111, 0x111111, 1, true)
- end
- elseif req == "1point" then
- if cash[pN] >= -99999999999999999999999999999999999999999999 then
- cash[pN] = 1
- ui.updateTextArea(2, "You have "..cash[pN].." points!", pN, 625, 25, 170, 20, 0x111111, 0x111111, 1, true)
- end
- end
- end
- function eventMouse(pN, x, y)
- if item[pN] > 0 then
- tfm.exec.addShamanObject(item[pN], x, y, 0, 0, 0, false)
- item[pN] = 0
- end
- end
- function eventChatCommand(pN, c)
- if c == "disable" and adminC[pN] then
- system.exit()
- end
- end
- for pN in pairs(tfm.get.room.playerList) do
- eventNewPlayer(pN)
- end
- function eventPlayerDied2(pN)
- tfm.exec.setPlayerScore(pN, cash[pN])
- end
- function eventGetCheese(pN)
- tfm.exec.setPlayerScore(pN, cash[pN])
- end
- function eventPlayerRespawn(pN)
- tfm.exec.setPlayerScore(pN, cash[pN])
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement