Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- timer = 999
- music = {}
- ui.addPopup(5,0,"<p align='center'><font color='#88FEBF' size='16'>Utilitaire - Music'Attente</font><br><br><font size='14'>Tape <font color='#ED67EA' size='14'>!music</font> pour voir la liste d'attente des musique<br><font color='#ED67EA' size='14'>!add</font> pour ajouter une musique en attente<br><font color='#ED67EA' size='14'>!ok</font> pour relancer le chrono, actionner le seulement quand vous avez mis votre musique.<br><br><font color='#88FEBF' size='11'>N'hésitez pas à reload le module quand la liste est full",name,200,120,400)
- function eventChatCommand(name,command) -- A partir de la il y'a les commandes
- if command == "music" then
- local str = "<p align='center'><font color='#5BD1C5' size='14'><b>Liste des musiques en attente :</b></font></p>"
- str = str .. "<br><font color='#F4F19A' size='11'><b>" .. table.concat(music,'\n') .. "</b></font>"
- ui.addPopup(1004,0, str, name,200,100,400)
- end
- if command == "add" then
- ui.addPopup(10,2,"<p align='center'><b>Entrer le nom de la musique que vous allez mettre (exemple : Vamos à la playa) ET VOTRE PSEUDO <br>(Merci de reserver qu'une musique par personne).</p></b>",name,300,200,200)
- end
- if command == "ok" then
- timer = 0
- end
- end
- function eventPopupAnswer(idpopup, name, answer)
- if idpopup==10 then
- table.insert(music, answer)
- ui.addPopup(4, 0, "<font color='#5BD1C5' size='15'>• [<b>"..name.."</b>] ajoute :</font><font color='#F3F38D' size='13'> "..answer.." </font><font color='#5BD1C5' size='13'>dans la liste d'attente</font>", nil, 300, 140, 325)
- timer = 0
- end
- if idpopup==11 then
- ui.addPopup(4, 0, "<font color='#5BD1C5' size='15'>La musique de <b>"..name.."</b> est fini vous pouvez passer la prochaine musique, de la liste.", nil, 300, 140, 325)
- end
- end
- function eventLoop(currentTime, timeRemaining)
- timer = timer + 0.5
- if timer==191 then
- ui.addTextArea(2, "<font size='20'>0</font>", all, 380, 110,nil,nil,1234564444444499999666565)
- ui.addPopup(101, 0, "<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>", all, -1000, -1000, 1000000)
- ui.addPopup(1575, 3, "<p align='center'><font color='#FA7C7C' size='15'><b>~ Prochaine musique.<br><br><font color='#FFFFF' size='12'>La map revient dans 3 secondes !</b></font></p>", name, 300, 150, 500) end
- if timer==194 then
- ui.addPopup(101, 0, "ENLEVE", nil, 3000000, 14000000, 325)
- ui.addPopup(1575, 3, "ENLEVE", nil, 3000000, 14000000, 325)
- timer = 999
- end
- if timer==1 then
- ui.addTextArea(2, "<font size='20'><br> <b>180</b> ...</font>", all, 380, 110,nil,nil)
- end
- if timer==11 then
- ui.addTextArea(2, "<font size='20'>170</font>", all, 380, 110,nil,nil)
- end
- if timer==21 then
- ui.addTextArea(2, "<font size='20'>160</font>", all, 380, 110,nil,nil)
- end
- if timer==31 then
- ui.addTextArea(2, "<font size='20'>150</font>", all, 380, 110,nil,nil)
- end
- if timer==41 then
- ui.addTextArea(2, "<font size='20'>140</font>", all, 380, 110,nil,nil)
- end
- if timer==51 then
- ui.addTextArea(2, "<font size='20'>130</font>", all, 380, 110,nil,nil)
- end
- if timer==61 then
- ui.addTextArea(2, "<font size='20'>120</font>", all, 380, 110,nil,nil)
- end
- if timer==71 then
- ui.addTextArea(2, "<font size='20'>110</font>", all, 380, 110,nil,nil)
- end
- if timer==81 then
- ui.addTextArea(2, "<font size='20'>100</font>", all, 380, 110,nil,nil)
- end
- if timer==91 then
- ui.addTextArea(2, "<font size='20'>90</font>", all, 380, 110,nil,nil)
- end
- if timer==111 then
- ui.addTextArea(2, "<font size='20'>80</font>", all, 380, 110,nil,nil)
- end
- if timer==121 then
- ui.addTextArea(2, "<font size='20'>70</font>", all, 380, 110,nil,nil)
- end
- if timer==131 then
- ui.addTextArea(2, "<font size='20'>60</font>", all, 380, 110,nil,nil)
- end
- if timer==141 then
- ui.addTextArea(2, "<font size='20'>50</font>", all, 380, 110,nil,nil)
- end
- if timer==151 then
- ui.addTextArea(2, "<font size='20'>40</font>", all, 380, 110,nil,nil)
- end
- if timer==161 then
- ui.addTextArea(2, "<font size='20'>30</font>", all, 380, 110,nil,nil)
- end
- if timer==171 then
- ui.addTextArea(2, "<font size='20'>20</font>", all, 380, 110,nil,nil)
- end
- if timer==181 then
- ui.addTextArea(2, "<font size='20'>10</font>", all, 380, 110,nil,nil,1234564444467495757)
- end
- if timer==182 then
- ui.addTextArea(2, "<font size='20'>9</font>", all, 380, 110,nil,nil,1234564444467495757)
- end
- if timer==183 then
- ui.addTextArea(2, "<font size='20'>8</font>", all, 380, 110,nil,nil,1234564444467495757)
- end
- if timer==184 then
- ui.addTextArea(2, "<font size='20'>7</font>", all, 380, 110,nil,nil,1234564444467495757)
- end
- if timer==185 then
- ui.addTextArea(2, "<font size='20'>6</font>", all, 380, 110,nil,nil,1234564444467495757)
- end
- if timer==186 then
- ui.addTextArea(2, "<font size='20'>5</font>", all, 380, 110,nil,nil,1234564444467495757)
- end
- if timer==187 then
- ui.addTextArea(2, "<font size='20'>4</font>", all, 380, 110,nil,nil,1234564444467495757)
- end
- if timer==188 then
- ui.addTextArea(2, "<font size='20'>3</font>", all, 380, 110,nil,nil,1234564444467495757)
- end
- if timer==189 then
- ui.addTextArea(2, "<font size='20'>2</font>", all, 380, 110,nil,nil,1234564444467495757)
- end
- if timer==190 then
- ui.addTextArea(2, "<font size='20'>1</font>", all, 380, 110,nil,nil,1234564444467495757)
- end
- if timer==999 then
- ui.addTextArea(2, "", all, 380, 110,nil,nil,1234564444467495757)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment