Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- il=0
- tfm.exec.disableAutoScore(true)
- for nick in pairs(tfm.get.room.playerList) do
- tfm.exec.setPlayerScore(nick,0)
- end
- function eventNewGame()
- il=0
- for nick in pairs(tfm.get.room.playerList) do
- il=il+1
- end
- end
- function eventPlayerDied()
- il=il-1
- if il==1 then
- for nick,stat in pairs(tfm.get.room.playerList) do
- if not(stat.isDead) then
- S=tfm.get.room.playerList[nick]
- tfm.exec.setPlayerScore(nick,1,true)
- for i=1,10 do
- tfm.exec.displayParticle(29,S.x,S.y,math.random(-20,20)/10,math.random(-20,20)/10,0,0)
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement