Advertisement
Dudugz-Contistente

Untitled

Sep 20th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. config=[[
  2. #7
  3. 60
  4. 5
  5. ]]
  6.  
  7. read={
  8. lines=function(string)
  9. local lines={}
  10. for line in string.gmatch(string,'(.-)%\n') do
  11. table.insert(lines,line)
  12. end
  13.  
  14. return lines
  15. end,
  16. }
  17.  
  18. function newMap()
  19. tfm.exec.newGame(read.lines(config)[1])
  20. tfm.exec.setGameTime(read.lines(config)[2])
  21. end
  22.  
  23. function eventPlayerWon(name)
  24. tfm.exec.setGameTime(read.lines(config)[3])
  25. end
  26.  
  27. newMap()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement