Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tfm.exec.disableAutoTimeLeft(disable)
- tfm.exec.disableAfkDeath(disable)
- tfm.exec.newGame("@7640468")
- createRing = function(playerName, x, y, r1, r2, alpha, fineness, i)
- num = 0
- while num <= 2*math.pi do
- ui.addTextArea(i, "", playerName, r1*math.cos(num)+x-r2/2, r1*math.sin(num)+y-r2/2, r2, r2, 0x000000, 0x000001, alpha, true)
- num = num + 2*math.pi/fineness
- if i then
- i = i + 1
- end
- end
- return i
- end
- nightMode = function(playerName)
- i = 0
- x = 400
- y = 250
- i = createRing(playerName, x, y, 90, 35, 0.5, 25, i)
- i = createRing(playerName, x, y, 120, 40, 0.66, 30, i)
- i = createRing(playerName, x, y, 160, 50, 0.83, 40, i)
- ui.addTextArea(i, "", playerName, 545, 0, 255, 400, 0x000000, 0x000001, 1, true)
- i=i+1
- ui.addTextArea(i, "", playerName, 0, 0, 255, 400, 0x000000, 0x000001, 1, true)
- i=i+1
- ui.addTextArea(i, "", playerName, 0, 0, 800, 123, 0x000000, 0x000001, 1, true)
- i=i+1
- ui.addTextArea(i, "", playerName, 0, 375, 800, 25, 0x000000, 0x000001, 1, true)
- i=i+1
- end
- eventNewPlayer = function(playerName)
- nightMode(playerName)
- tfm.exec.respawnPlayer(playerName)
- end
- for k, v in next, tfm.get.room.playerList do
- eventNewPlayer(v.playerName)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement