Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- t=0
- oldTime=os.time()
- tfm.exec.disableAutoShaman(true)
- tfm.exec.disableAfkDeath(true)
- tfm.exec.disableAutoNewGame(true)
- tfm.exec.newGame("@7588958")
- function eventNewGame()
- for name in next, tfm.get.room.playerList do
- tfm.exec.setPlayerScore(name, 0, false)
- end
- end
- players = {}
- for name, data in next, tfm.get.room.playerList do
- table.insert(players, name)
- end
- randomPlayer = players[math.random(1,#players)]
- tfm.exec.movePlayer(randomPlayer,400,380,false,0,50,false)
- tfm.exec.setUIMapName("<font color='#98E2EB'>"..randomPlayer.."<font color='#2E72CB'> Is the chosen player who would be tortured for this day!")
- function eventLoop(currentTime,timeRemaining)
- t=t+1
- if t==7 then
- ui.addTextArea(1,"<font size='15px'>Game starts in 5 seconds!",n,285,185,350,250,0x0000000,0x000000,9,true)
- ui.removeTextArea(1,randomPlayer)
- end
- if t==17 then
- ui.removeTextArea(1,n)
- ui.addTextArea(2,"<a href='event:wat'><font size='15px'>Click me!</a>",n,355,185,150,250,0x000000,0x000000,9,true)
- ui.removeTextArea(2,randomPlayer)
- end
- end
- function eventTextAreaCallback(id,name,evt)
- if evt=="wat" then
- tfm.exec.setPlayerScore(name, 1, true)
- end
- if t==37 then
- ui.removeTextArea(2,n)
- end
- if t==37 then
- local max
- for playerName, playerData in next, tfm.get.room.playerList do
- local points
- if tfm.get.room.playerList[max] then
- points = tfm.get.room.playerList[max].score
- else
- points = -1
- end
- if playerData.score > points then
- max = playerName
- end
- ui.addTextArea(3, "<a href='event:commands'>?", max, 7, 26, 12, 20, 0x324650, 0x000000, 1, true)
- ui.removeTextArea(3,randomPlayer)
- end
- function eventTextAreaCallback(id, n, evt)
- if evt == "commands" then
- ui.addTextArea(4, "<p align='center'> Commands :\n !kill - kills the player.\n!respawn - kills the player.\n!shaman - shamans the player.", max, 7, 26, 437, 164, 0x324650, 0x000000, 1, true)
- ui.removeTextArea(4,randomPlayer)
- end
- end
- end
- end
RAW Paste Data