Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --tables
- local maps = {5184638,5188278}
- admin={"Drawist","Tiwdamerenda"}
- banidos={}
- --começo
- tfm.exec.disableAutoNewGame(true)
- tfm.exec.disableAfkDeath(true)
- tfm.exec.disableAutoShaman(true)
- tfm.exec.disableAutoNewGame(true)
- tfm.exec.disableAutoTimeLeft(true)
- tfm.exec.newGame (maps[math.random(#maps)])
- ui.addPopup (1,0,"Welcome to <b>#Diff</b> Press <b>H</b> for more information.", nil, 250, 150, 300);
- function coloradmin()
- for _,admins in pairs(admin) do
- tfm.exec.setNameColor(admins, 0xFE0000)
- tfm.exec.bindKeyboard(admins, 32, true, true)
- end
- end
- coloradmin()
- function startNewGame()
- tfm.exec.newGame (maps[math.random(#maps)])
- end
- function eventLoop (t, tr)
- if tr <= 1000 then
- startNewGame()
- end
- end
- function eventNewPlayer(p)
- coloradmin()
- tfm.exec.respawnPlayer(p)
- end
- function eventPlayerWon(p)
- tfm.exec.respawnPlayer(p)
- coloradmin()
- end
- function eventPlayerDied(p)
- tfm.exec.respawnPlayer(p)
- coloradmin()
- end
- function eventNewGame()
- tfm.exec.setGameTime(360)
- coloradmin()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement