Thetroz

Fail

Jan 7th, 2014
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.83 KB | None | 0 0
  1. life=3
  2. mice = {}
  3.  
  4. function main()
  5.         for player in pairs(tfm.get.room.playerList) do
  6.                 eventNewPlayer(player)
  7.         end
  8. end
  9.  
  10. function eventNewGame()
  11.     life=3
  12.     end
  13.  
  14. function eventPlayerDied(name)
  15.  mice[name] = {
  16.     life=life-1
  17. }
  18.    if life <= 1 then
  19.     tfm.exec.respawnPlayer(name)
  20.    end
  21. end
  22.  
  23. function eventNewPlayer(name)
  24.     life=3
  25. end
  26.  
  27.  
  28. function eventLoop()
  29.    if life == 3 then
  30.     tfm.exec.displayParticle(5,30,35,0,0, 0, 0, name)
  31.     tfm.exec.displayParticle(5,60,35,0,0, 0, 0, name)
  32.     tfm.exec.displayParticle(5,90,35,0,0, 0, 0, name)
  33.    elseif life == 2 then
  34.     tfm.exec.displayParticle(5,30,35,0,0, 0, 0, name)
  35.     tfm.exec.displayParticle(5,60,35,0,0, 0, 0, name)
  36.    elseif life == 1 then
  37.     tfm.exec.displayParticle(5,30,35,0,0, 0, 0, name)
  38.     end
  39. end
  40.  
  41. main()
Advertisement
Add Comment
Please, Sign In to add comment