Facebook
From Tedincho, 3 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 51
  1. tfm.exec.disableAutoShaman(true)
  2. tfm.exec.disableMinimalistMode(true)
  3. tfm.exec.disableMortCommand(true)
  4. tfm.exec.disableAutoTimeLeft(true)
  5. tfm.exec.disableAutoNewGame(true)
  6. tfm.exec.newGame('@7553029')
  7. tfm.exec.setUIMapName("<font color ='#FF0000'> PC NASA TEST <font color ='#FFFFFF'> | <font color ='#00B2FF'> <b> By Abel S. </b></font>")
  8. tfm.exec.setGameTime(300)
  9. ui.addPopup(10,0," <font color ='#00EEFF'> <b>          ¡Welcome to <font color ='#FF0000'> PC NASA TEST<font color ='#00EEFF'>! </b>                <font color ='#00FF51'> • A ver quien tiene la mejor PC ^^                     • ¡El suelo desaparecerá en 30 segundos!                     • Created by Abel#5631",nil,250,30,300)
  10. function eventLoop(t,tr)
  11. if tr <= 0 then
  12. system.exit()
  13. end
  14. conjurarZona=57
  15. t=math.random(0,400)
  16. tr=math.random(0,200)
  17. tfm.exec.addShamanObject(conjurarZona,t,tr,100,0,0,nil)
  18. end
  19. function eventNewPlayer(name)
  20. ui.addPopup(10,0," <font color ='#00EEFF'> <b>          ¡Welcome to <font color ='#FF0000'> PC NASA TEST<font color ='#00EEFF'>! </b>                <font color ='#00FF51'> • ¡A ver quien tiene la mejor PC!                     • Created by Abel#5631",name,250,30,300)
  21. tfm.exec.setUIMapName("<font color ='#FF0000'> PC NASA TEST <font color ='#FFFFFF'> | <font color ='#00B2FF'> <b> By Abel S. </b></font>")
  22. tfm.exec.respawnPlayer(name)
  23. end
  24. local alivePlayers = 0
  25. function checkAlivePlayers()
  26.     if alivePlayers == 1 then
  27.         for player, data in next, tfm.get.room.playerList do
  28.             if not data.isDead then
  29.                 ui.addTextArea(27, string.format("<p align='center'><font size='30' color='#FF0000'><b>¡Felicidades "..player.."!                                         Tienes la mejor computadora de la sala ^_^<b/> ", player), nil, 0, 100, 800, 100, 0, 0, 0, true)
  30.                   tfm.exec.setGameTime(5)
  31.             end
  32.         end
  33.     end
  34. end
  35.  function eventPlayerLeft(player)
  36.         alivePlayers = alivePlayers - 1
  37.         checkAlivePlayers()
  38.     end
  39.  function eventPlayerDied(player)
  40.     alivePlayers = alivePlayers - 1
  41.     checkAlivePlayers()
  42. end
  43.  function eventPlayerRespawn(player)
  44.     alivePlayers = alivePlayers + 1
  45.     checkAlivePlayers()
  46. end
  47.  function eventNewGame()
  48.     alivePlayers = 0
  49.     for player in next, tfm.get.room.playerList do
  50.         alivePlayers = alivePlayers + 1
  51.     end
  52.     checkAlivePlayers()
  53. end