Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- nextMap= function()
- lvl= math.random(#map);
- mapa,str= map[lvl][math.random(#map[lvl])],'<J>Dificuldade: <VP>%s';
- main= tfm.exec.newGame(mapa) or ui.setMapName(str:format(lvl));
- end
- eventLoop= tfm.exec.disableAutoNewGame(true) or function(a, b)
- c, map= 0, { [1]= {1054567}; [2]= {47,48}; };
- table.foreach(tfm.get.room.playerList, function(i,v) c= not v.isDead and c + 1 or c end)
- c= (c == 0 or b <=0) and nextMap();
- end
- eventLoop(0, 0)
Advertisement
Add Comment
Please, Sign In to add comment