Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local totalBalls = 0
- function nextMap()
- tfm.exec.newGame(7805070)
- end
- function spawnBall()
- totalBalls = totalBalls + 1
- tfm.exec.addPhysicObject(totalBalls, 1500, 30, {
- type = 13,
- color = math.random(0x01),
- width = 10,
- height = 10,
- friction = .3,
- restitution = .3,
- miceCollision = true,
- groundCollision = true,
- dynamic = true,
- mass = .5,
- })
- end
- function eventTextAreaCallback(id, player, event)
- if event == "ajd" then
- ui.addTextArea(2000, "<p align='center'><a href='event:ventajd'>#Vent Sobreviva e chegue ao queijo enquato bolas te derrubam do mapa! Por Sklag#2552</a></p>", player, 6, 75, 200, 100, 0x1, 0x1, 1, true)
- ui.addTextArea(1000, "<p align='center'><a href='event:fechar'>Fechar</a></p>", player, 6, 175, 200, 25, 0x1, 0x1, 1, true)
- elseif event == "fechar" then
- ui.removeTextArea(2000, player)
- ui.removeTextArea(1000, player)
- end
- end
- function eventLoop(sinceStart)
- if sinceStart >= 3000 then
- spawnBall()
- end
- end
- function eventNewGame()
- totalBalls = 0
- nextMap()
- end
- function eventNewPlayer(player)
- ui.addTextArea(20000, "<p align='center'><a href='event:ajd'>Ajuda</a></p>", player, 6, 25, nil, nil, 0x1, 0x1, 1, true)
- end
- table.foreach(tfm.get.room.playerList, eventNewPlayer)
- for index, value in next, {'AutoShaman', 'PhysicalConsumables'} do
- tfm.exec['disable' .. value]()
- end
- nextMap()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement