Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function eventPlayerDied()
- local i=0
- for n,player in pairs(tfm.get.room.playerList) do
- if not player.isDead then
- i=i+1
- tfm.exec.respawnPlayer(n)
- end
- end
- if i==0 then
- tfm.exec.newGame(maps[math.random(#maps)])
- end
- end
Add Comment
Please, Sign In to add comment