Advertisement
Skittlesuni

#Space Celebrate Mode

Apr 5th, 2016
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.36 KB | None | 0 0
  1. tfm.exec.disableAutoShaman(true)
  2.  
  3. tfm.exec.disableAutoNewGame(true)
  4. maps={6615525,6615335,6578495,6578501,6578508,6578517,6579007,6580027,6580135,6581504,6580174,2851677}
  5.  
  6.  
  7. function eventLoop(time,remaining)
  8. if remaining<=0 then
  9. tfm.exec.newGame(maps[math.random(#maps)])
  10. end
  11. end
  12.  
  13. function eventPlayerDied()
  14. local i=0
  15. for n,player in pairs(tfm.get.room.playerList) do
  16. if not player.isDead then
  17. i=i+1
  18. end
  19. end
  20. if i==0 then
  21. tfm.exec.newGame(maps[math.random(#maps)])
  22. end
  23. end
  24.  
  25. ui.addPopup(0, 0, "<p align='center'><font color='#babd27' size='24'face='Skittlesuni'>Credits</font></p><br> Skittlesuni - Game Creator <br>Dramatotala - Scripter<br>Fsoricar - Gameplay Tester", nil, 180, 93, 200, true)
  26.  
  27.  
  28. ui.addPopup(0, 0, "<p align='center'><font color='#babd27' size='24'face='Skittlesuni'>Celebrarte</font></p><br> Aaaa We Gonna CELEBRATE NOW! In another world, we are the super players! Time to CELEBRATE! Use this mode to CELEBRATE! When the room #Space appears, is time to dance! ^-^ And /nue stops a part of lag. But you will don't see others clothes.. but you will stop lagging! CELEBRATE WITH #SPACE, #SPACE STAFF AND SKITTLESUNI!", nil, 180, 93, 200, true)
  29.  
  30.  
  31.  
  32. function eventChatCommand(name,command)
  33. if command=="help" then
  34. ui.addPopup(0, 0, "<p align='center'><font color='#babd27' size='24'face='Skittlesuni'>Help</font></p><br> Hey, this is a Help Popup! Welcome to #Space! The rules are simple. Complete the maps just! Nothing else! You can do (amlost) anything, excepting hacking, insulting and more. Also there are Keepers what are checking what happens there. If you think everything is ran out, call a Keeper or better Skittlesuni to stop this mess ^-^ Good luck! Type /nue to stop lagging! ", nil, 180, 93, 200, true)
  35. elseif command=="credits" then
  36. ui.addPopup(0, 0, "<p align='center'><font color='#babd27' size='24'face='Skittlesuni'>Credits</font></p><br> Skittlesuni - Game Creator <br>Dramatotala - Scripter<br>Fsoricar - Gameplay Tester", nil, 180, 93, 200, true)
  37. end
  38. end
  39.  
  40.  
  41. for name, player in pairs(tfm.get.room.playerList) do
  42. tfm.exec.setNameColor(name, string.format("%x", math.random(0x000000, 0xFFFFFF)))
  43. end
  44.  
  45. tfm.exec.setUIMapName("#Space | Version 0.Celebrate")
  46.  
  47. function eventChatCommand(name,command)
  48. if command=="Five Players" then
  49. tfm.exec.setRoomMaxPlayers(5)
  50. elseif command=="Lonely Player" then
  51. tfm.exec.setRoomMaxPlayers(1)
  52. end
  53. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement