Advertisement
Guest User

Untitled

a guest
Aug 29th, 2014
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. il=0
  2.  
  3. tfm.exec.disableAutoScore(true)
  4.  
  5. for nick in pairs(tfm.get.room.playerList) do
  6. tfm.exec.setPlayerScore(nick,0)
  7. end
  8.  
  9. function eventNewGame()
  10. il=0
  11. for nick in pairs(tfm.get.room.playerList) do
  12. il=il+1
  13. end
  14. end
  15.  
  16. function eventPlayerDied()
  17. il=il-1
  18. if il==1 then
  19. for nick,stat in pairs(tfm.get.room.playerList) do
  20. if not(stat.isDead) then
  21. S=tfm.get.room.playerList[nick]
  22. tfm.exec.setPlayerScore(nick,1,true)
  23. for i=1,10 do
  24. tfm.exec.displayParticle(29,S.x,S.y,math.random(-20,20)/10,math.random(-20,20)/10,0,0)
  25. end
  26. end
  27. end
  28. end
  29. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement