Notes
Notes - notes.io |
tfm.exec.disableAutoShaman(true)
tfm.exec.newGame("@2643833")
tfm.exec.setGameTime(0)
tfm.exec.disableAutoScore(true)
players = {}
maps = {"@2643833","@5292245", "@5292344"}
bool=false
countdown = 0
playersAlive=0
count = 0
function eventLoop(time, remaining)
count = count + 1
if not bool and time >= 3000 then
tfm.exec.addShamanObject(17, 840, math.random()*350, 270)
tfm.exec.addShamanObject(17, 840, math.random()*350, 225)
if count > 10 then
--tfm.exec.addShamanObject(4, 810, 0, 90)
tfm.exec.addShamanObject(17, -10, 200, 180)
count = 0
end
elseif bool then
countdown = countdown + 1
if countdown > 10 then
tfm.exec.newGame("@2643833")
bool = false
countdown = 0
end
end
end
function eventPlayerDied(name)
playersAlive=playersAlive-1
if playersAlive == 1 then
bool = true
finish()
end
end
function eventNewPlayer(name)
players[name] = {
score = 0
}
end
function eventNewGame()
tfm.exec.setUIMapName("<YELLOW>#morv")
playersAlive=0
for n,p in pairs(tfm.get.room.playerList) do
playersAlive=playersAlive+1
end
end
function finish ()
for name, player in pairs(tfm.get.room.playerList) do
if not player.isDead then
players[name].score = players[name].score + 1
ui.addTextArea(1, "<ROSE><p align='center'><font size='14'><b>".. name.. "<N> has won with a score of " .. players[name].score, nil , 200, 30, 400, 23)
end
end
tfm.exec.setGameTime(5)
end
for name, player in pairs(tfm.get.room.playerList) do
eventNewPlayer(name)
endtfm.exec.disableAutoNewGame(true)
tfm.exec.disableAutoShaman(true)
tfm.exec.newGame("@2643833")
tfm.exec.setGameTime(0)
tfm.exec.disableAutoScore(true)
players = {6}
maps = {"@2643833","@5292245", "@5292344"}
bool=false
countdown = 0
playersAlive=0
count = 0
function eventLoop(time, remaining)
count = count + 1
if not bool and time >= 3000 then
tfm.exec.addShamanObject(17, 840, math.random()*350, 270)
tfm.exec.addShamanObject(17, 840, math.random()*350, 225)
if count > 10 then
--tfm.exec.addShamanObject(4, 810, 0, 90)
tfm.exec.addShamanObject(17, -10, 200, 180)
count = 0
end
elseif bool then
countdown = countdown + 1
if countdown > 10 then
tfm.exec.newGame("@2643833")
bool = false
countdown = 0
end
end
end
function eventPlayerDied(name)
playersAlive=playersAlive-1
if playersAlive == 1 then
bool = true
finish()
end
end
function eventNewPlayer(name)
players[name] = {
score = 0
}
end
function eventNewGame()
tfm.exec.setUIMapName("<YELLOW>#morv")
playersAlive=0
for n,p in pairs(tfm.get.room.playerList) do
playersAlive=playersAlive+1
end
end
function finish ()
for name, player in pairs(tfm.get.room.playerList) do
if not player.isDead then
players[name].score = players[name].score + 1
ui.addTextArea(1, "<ROSE><p align='center'><font size='14'><b>".. name.. "<N> has won with a score of " .. players[name].score, nil , 200, 30, 400, 23)
end
end
tfm.exec.setGameTime(5)
end
for name, player in pairs(tfm.get.room.playerList) do
eventNewPlayer(name)
end
|
Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 12 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team