Advertisement
Rawoas13

Untitled

May 24th, 2020
353
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.67 KB | None | 0 0
  1. mapList = {241035,241036,241037}
  2. local queueMaps = {}
  3. function mapChange()
  4.     if #queueMaps > 0 then
  5.         tfm.exec.newGame(queueMaps[1])
  6. queueMaps[1] = nil
  7.     else
  8.         tfm.exec.newGame(mapList[math.random(0, #mapList)])
  9.     end
  10. end
  11.  
  12. -- [[ Disable ]] --
  13. system.disableChatCommandDisplay(nil)
  14.  
  15. for _, v in next, {'AutoTimeLeft', 'AutoShaman', 'AutoNewGame', 'AutoScore', 'AfkDeath', 'PhysicalConsumables'} do
  16.     tfm.exec['disable' .. v]()
  17. end
  18. -- [[ Functions Lib ]] --
  19. local split = function(str, s)
  20.     local res = {}
  21.     for part in string.gmatch(str, "[^" .. s .. "]+") do
  22.         table.insert(res, part)
  23.     end
  24.     return res
  25. end
  26.  
  27. mapChange()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement