Gekkeiju

Untitled

Dec 28th, 2016
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.24 KB | None | 0 0
  1. function eventPlayerDied()
  2.     local i=0
  3.     for n,player in pairs(tfm.get.room.playerList) do
  4.         if not player.isDead then
  5.             i=i+1
  6.             tfm.exec.respawnPlayer(n)
  7.         end
  8.     end
  9.     if i==0 then
  10.         tfm.exec.newGame(maps[math.random(#maps)])
  11.     end
  12. end
Add Comment
Please, Sign In to add comment