Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tfm.exec.disableAutoShaman(true)
- tfm.exec.disableAutoNewGame(true)
- maps={6569936,6615525,6615335,6578495,6578501,6578508,6578517,6579007,6580027,6580135,6581504,6580174,2851677,6677379,1738125}
- function eventLoop(time,remaining)
- if remaining<=0 then
- tfm.exec.newGame(maps[math.random(#maps)])
- end
- end
- function eventPlayerDied()
- local i=0
- for n,player in pairs(tfm.get.room.playerList) do
- if not player.isDead then
- i=i+1
- end
- end
- if i==0 then
- tfm.exec.newGame(maps[math.random(#maps)])
- end
- end
- for name,player in pairs(tfm.get.room.playerList) do
- tfm.exec.bindKeyboard(name, 9, true, true)
- tfm.exec.bindKeyboard(name, 67, true, true)
- tfm.exec.bindKeyboard(name, 27, true, true)
- end
- function eventKeyboard(name, key, down, x, y)
- if key == 9 then
- ui.addPopup(0, 0, "<p align='center'><font color='#babd27' size='24'face='Skittlesuni'>Help</font></p><br> Hey, welcome to #Space! This is the key list! You can summon it again if you forget something pressing [TAB]. Special Thanks for Skittlesuni, the #Space Creator and the adder of this feature!<br>[C] - Credits.<br>[Esc] - WARNING: DON'T USE IT IF YOU WANT JUST TO TROLL! - Exit from the game.<br>", nil, 52, 66, 200, true)
- elseif key == 67 then
- ui.addPopup(0, 0, "<p align='center'><font color='#babd27' size='24'face='Skittlesuni'>Credits</font></p><br><br>- Skittlesuni : Game Creator<br>- Fsoricar : Gameplay Tester<br>- Dramatotala : Unactive Scripter (expiration date if no active in 19.05.2015", nil, 4, 30, 200, true)
- elseif key == 27 then
- system.exit()
- end
- end
- for name, player in pairs(tfm.get.room.playerList) do
- tfm.exec.setNameColor(name, string.format("%x", math.random(0x000000, 0xFFFFFF)))
- end
Add Comment
Please, Sign In to add comment