Tectoon

[TFM] Rotação²

Jul 6th, 2015
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.44 KB | None | 0 0
  1. t={
  2.     m={0,1,2,3,4,5,6,7,8,9,10},--MAPAS AQUI
  3.     botamapa=function(self)
  4.         tfm.exec.newGame(self.m[math.random(#self.m)])
  5.     end,
  6.     temratoounao=function()
  7.         local i=0
  8.         table.foreach(tfm.get.room.playerList,function(k,v) i=not v.isDead and i+1 or i end)
  9.         return i==0
  10.     end
  11. }
  12.  
  13. function eventLoop(_,r)
  14.     podeir=t.temratoounao()
  15.     podeir=(podeir or r<=0)
  16.     if podeir then t:botamapa() end
  17. end
  18.  
  19. tfm.exec.disableAutoNewGame(true)
  20. t:botamapa()
Advertisement
Add Comment
Please, Sign In to add comment