tfm.exec.disableAutoNewGame() tfm.exec.disableAutoTimeLeft() tfm.exec.disableAfkDeath() system.disableChatCommandDisplay("m") results={} players={} adm="Tortuegreen" tmr=0 function eventNewGame() tmr=120 results={} players={} for name in pairs(tfm.get.room.playerList) do table.insert(players, name) results[name]={vote="", comment=""} end end function eventChatCommand(name, cmd) if cmd:sub(0,3)=="m @" and cmd:sub(4)~="" then tfm.exec.newGame(cmd:sub(3)) end end function addAreas(name) heightBase = 400 weightBase = 250 xBase = math.ceil((800-heightBase)/2) yBase = math.ceil((400-weightBase)/2) ui.addTextArea(1, "", name, xBase, yBase, heightBase, weightBase, 0x2D211A, 0x2D211A, 0.8, true) ui.addTextArea(2, "", name, tonumber(xBase+1), tonumber(yBase+1), tonumber(heightBase-2), tonumber(weightBase-2), 0x986742, 0x986742, 1, true) ui.addTextArea(3, "", name, tonumber(xBase+4), tonumber(yBase+4), tonumber(heightBase-8), tonumber(weightBase-8), 0x171311, 0x171311, 1, true) ui.addTextArea(4, "", name, tonumber(xBase+5), tonumber(yBase+5), tonumber(heightBase-10), tonumber(weightBase-10), 0x0C191C, 0x0C191C, 1, true) ui.addTextArea(5, "", name, tonumber(xBase+6), tonumber(yBase+6), tonumber(heightBase-12), tonumber(weightBase-12), 0x24474D, 0x24474D, 1, true) ui.addTextArea(6, "", name, tonumber(xBase+7), tonumber(yBase+7), tonumber(heightBase-14), tonumber(weightBase-14), 0x183337, 0x183337, 1, true) ui.addTextArea(7, "", name, tonumber(xBase+8), tonumber(yBase+8), tonumber(heightBase-16), tonumber(weightBase-16), 0x122528, 0x122528, 1, true) end function addVotes() addAreas(nil) votes="
Le moment est venu de donner une note à la map !
Choix possibles :
Bien
A modifier
Nul
Commentaire : (facultatif)
Le moment est venu de donner une note à la map !
Choix possibles : Veuillez voter
Bien
A modifier
Nul
Commentaire : (facultatif)
Le moment est venu de donner une note à la map !
Choix possibles :
Bien
A modifier
Nul
Commentaire : (facultatif)
Le moment est venu de donner une note à la map !
Choix possibles :
Bien
A modifier
Nul
Commentaire : (facultatif)
Le moment est venu de donner une note à la map !
Choix possibles :
Bien
A modifier
Nul
Commentaire : (facultatif)
Carte @"..tfm.get.room.xmlMapInfo.mapCode.."
"..res.."