Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as Plain Text by Cencell ( 13 years ago )
tfm.exec.disableAutoNewGame(true)
maps={0,1,2,3,4,5,6,7,8,9,10}

function eventLoop(time,remaining)
 if remaining<=0 then
  tfm.exec.newGame(maps[math.random(#maps)])
 end
end

function eventPlayerDied()
 local i=0
 for n,player in pairs(tfm.get.room.playerList) do
  if not player.isDead then
   i=i+1
  end
 end
 if i==0 then
  tfm.exec.newGame(maps[math.random(#maps)])
 end
end

 

Revise this Paste

Your Name: Code Language: