Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- admins={"Ylir", "Luarylaury", "Thismustard", "Beautyadell", "Mousetat"}
- -- remember to put "," between each name!
- tfm.exec.disableAutoNewGame(true)
- tfm.exec.disableAfkDeath(true)
- tfm.exec.disableAutoShaman(true)
- tfm.exec.disableAutoScore(true)
- tfm.exec.newGame("@6411544")
- players={}--respawn place is 400,320
- p={}
- timestamp=os.time()
- numplayers=0
- begin=false
- answerer="lol"
- questioner="lol"
- question="lol"
- ans="lol"
- new=false
- restart=false
- choose=false
- start=true
- choosey=false
- skip=false
- message=""
- others={}
- summonobject=false
- timestamplol={}
- answererold=""
- one=false
- dance=false
- mapcomplete=false
- truth={}--you can follow the format 'truth[number]="question"'
- truth[1]="Cine este crush-ul tau în acest joc?"
- truth[2]="Care este mâncarea ta preferată?"
- truth[3]="Cine este persoana ta favorită din joc?"
- truth[4]="Ce altceva mai joci înafara de Transformice?"
- truth[5]="Ce ți-ar placea sa fii când o sa crești mare?"
- truth[6]="Ți-ai supt degetul mijlociu vreodată?"
- truth[7]="Ce marcă de telefon ai în prezent?"
- truth[8]="Te-ai bașit vreodată în fața unui prieten/profesor etc. în viața reală?"
- truth[9]="Dacă ai putea sa folosești hack pe transformice, care ar fi acesta?"
- truth[10]="Care este culoarea sau blănița ta preferata din transformice?"
- truth[11]="Ce îți place la transformice? (un raspuns scurt)"
- truth[12]="Ce uraști cel mai mult la tine?"
- truth[13]="Ce iubești cel mai mult la tine?"
- truth[14]="Te iubești sau te uraști mai mult și spune-ne de ce."
- truth[15]="Ce îți place cel mai mult de la crush-ul din viața reală, în termeni de personalitate și termeni fizici?"
- truth[16]="Tell us why you hate the person you currently hate in real life, in personality terms."
- truth[17]="Dacă ai putea sa-ți cumperi un item pe gratis, care ar fi acesta?"
- truth[18]="Ai alege sa ai un milion de dolari sau sa traiești cu 30 de ani mai mult?"
- truth[19]="Care este jocul tau preferat de pe Androi/iOS?"
- truth[20]="Care este cel mai lung timp pe care l-ai petrecut fara sa faci duș?"
- truth[21]="Ai mâncat vreodata vreo insecta?"
- truth[22]="Dacă ai putea fi un personaj negativ, pe cine ai alege?"
- truth[23]="Dacă ai putea fi un super erou, pe cine ai alege?"
- truth[24]="Dacă ai putea fi o insectă, care ai fi?"
- truth[25]="De cine îți place cel mai mult din staff-ul jocului? (Admin/Moderator/Sentinels/Mapcrew/Funcorp)"
- truth[26]="Care este impresia ta despre mine?"
- truth[27]="Ai copiat vreodata la un test?"
- truth[28]="Câți iubiți, respectiv iubite, ai avut în total?"
- truth[29]="Dacă ai fi cel mai bogat om din lume, cum ți-ai petrece majoritatea timpul?"
- truth[30]="Dacă ai putea fi șeful unei companii de renume pentru o zi, ce ai face?"
- truth[31]="Dupa ce celebritate ești obesat/ă cel mai mult?"
- truth[32]="Care este echipa ta favorită? (orice sport)"
- truth[32]="Care este melodia ta preferată?"
- truth[33]="Ești pe o insulă cu înca o persoana, cine ți-ai dori sa fie? (acea persoana trebuie să fie pe sală)"
- truth[34]="Daca ai putea sa saruți pe cineva din aceasta sală, cine ar fi?"
- truth[35]="Ai prefera sa fii bogat dar prost sau sarac și deștept?"
- dare={}--you can follow the format 'dare[number]="Dare"'
- dare[1]="Te provoc să te duci pe sala 2 și spamezi de 10 ori: CHARLOTTE CHARLOTTE CHARLOTTE CHARLOTTE CHARLOTTE CHARLOTTE CHARLOTTE CHARLOTTE"
- dare[2]="Te provoc să-i șoptești unui moderator un cuvânt urât."
- dare[3]="Te provoc să îi spui unei persoane de pe sală că o iubești"
- dare[4]="Te provoc să te duci pe sala 2 și spamezi de 10 ori: I'M FLOODING REPORT ME!"
- dare[5]="Te provoc să raportezi un moderator pentru hacking"
- dare[6]="Te provoc să îți creezi un cont nou cu un nume similar a unui moderator online și să-i șoptești: Hallo buddy!"
- dare[7]="Te provoc să îți spui numele real pe chat"
- dare[8]="Te provoc să ne dai o poză cu tine din realitate"
- dare[9]="Te provoc să te duci pe orice sală de #utility cu cel puțin 3 playeri și să faci flood."
- dare[10]="Te provoc să-mi dai 3 iteme din inventar."
- dare[11]="Te provoc să te deconectezi și să te reconectezi chiar acum."
- dare[12]="I dare you to say who would be your most likely crush among the players in this room we are in."
- dare[13]="Te provoc să faci 3 selfie-uri cu mine."
- dare[14]="Te provoc să faci această mapă fară să trișezi."
- dare[15]="Te provoc să spui 'TE IUBESC (username)' de 5 ori în chatul tribului."
- dare[16]="Te provoc să mă săruți de 10 ori <3 "
- dare[17]="Te provoc să te căsătorești cu cel mai bun prieten de pe joc, asta dacă nu esți casătorit/ă deja"
- dare[18]="Te provoc să-i spui 'LA MULȚI ANI' unui jucator random de pe sala 3."
- dare[19]="Te provoc să-i șoptești unui moderator, 'I'm evil!! Ban me!'"
- dare[20]="Te provoc să săruți și să săruți pe cineva de același sex"
- dare[21]="Te provoc să spui de 5 ori 'Îmi place mămăliga!!!' pe chatul public"
- dare[22]="Te provoc să-ți inviți crush-ul la o întâlnire."
- dare[23]="Te provoc să îi șoptești unui moderator, 'HEY <numele moderatorului>, I'M YOUR DAD'"
- function eventNewPlayer(name)
- ui.addTextArea(1,"<b><p align = 'center'><font size='30'>Tastează !join - să te alături jocului.</font></p></b>",name,50,365,700,40,0x324650,0x212F36,0.8,true)
- ui.addPopup(999,0,"<p align = 'center'><font size='40' face='impact'>Truth or Dare</font></p><font size='20' color='#FF0000'><b>About the game</b></font><font size='15'>\nEvery game, everyone will have the chance to be the Asker. On the first popup as an asker, u can click 'Yes' to randomize a answerer, or 'No' to type a particular person in room. This is similar for almost all other popups, where 'Yes' is for random and 'No' is for typing out yourself. If you are the asker, you can also type '#(number)' to give the question number of the truth/dare in the random list. There are currently <b>"..#truth.."</b> random truths and <b>"..#dare.."</b> random dares, so if you have any feedback feel free to tell me.\n<font color='#00FF00'>Created by Mousetat</font> \nForum Thread: atelier801.com//topic?f=6&t=814350&p=1 \n</font><font face='impact' size='30'>Type !commands to see the list of commands</font>",name,100,50,600,true)
- p[name]={questioners=false, admin=false, spectator=true, ban=false, randomerino=1, out=false, new=false}
- local i=0
- while i<=#admins do
- if name==admins[i] then
- p[name].admin=true
- end
- i=i+1
- end
- end
- function eventNewGame()
- ui.addTextArea(1,"<b><p align = 'center'><font size='30'>Welcome to Truth or Dare Game!</font></p></b>",nil,50,365,700,40,0x324650,0x212F36,0.8,true)
- ui.addPopup(999,0,"<p align = 'center'><font size='40' face='impact'>Truth or Dare</font></p><font size='20' color='#FF0000'><b>About the game</b></font><font size='15'>\nEvery game, everyone will have the chance to be the Asker. On the first popup as an asker, u can click 'Yes' to randomize a answerer, or 'No' to type a particular person in room. This is similar for almost all other popups, where 'Yes' is for random and 'No' is for typing out yourself. If you are the asker, you can also type '#(number)' to give the question number of the truth/dare in the random list. There are currently <b>"..#truth.."</b> random truths and <b>"..#dare.."</b> random dares, so if you have any feedback feel free to tell me.\n<font color='#00FF00'>Created by Mousetat. Translated by Ylir</font> \nForum Thread: atelier801.com//topic?f=6&t=814350&p=1 \n</font><font face='impact' size='30'>Type !commands to see the list of commands</font>",nil,100,50,600,true)
- answerer=""
- questioner=""
- begin=false
- start=true
- numplayers=0
- count=1
- one=false
- local i=0
- for name,player in pairs(tfm.get.room.playerList) do
- p[name]={questioners=false, admin=false, spectator=true, ban=false, randomerino=1, out=false, new=false}
- players[count]=name
- timestamp=os.time()
- numplayers=numplayers+1
- count=count+1
- p[name].spectator=false
- p[name].questioners=false
- local i=0
- while i<=#admins do
- if name==admins[i] then
- p[name].admin=true
- end
- i=i+1
- end
- end
- system.disableChatCommandDisplay("t", hidden)
- system.disableChatCommandDisplay("admin", hidden)
- system.disableChatCommandDisplay("restart", hidden)
- system.disableChatCommandDisplay("ban", hidden)
- system.disableChatCommandDisplay("skip", hidden)
- system.disableChatCommandDisplay("watch", hidden)
- system.disableChatCommandDisplay("unban", hidden)
- system.disableChatCommandDisplay("unadmin", hidden)
- end
- function eventChatCommand(name,command)
- local IDList = {}
- if command=="clear" then
- for id, object in pairs(tfm.get.room.objectList) do
- table.insert(IDList, id)
- end
- for i, id in pairs(IDList) do
- tfm.exec.removeObject(id)
- end
- end
- if command=="s" and p[name].admin==true then
- tfm.exec.setShaman(name)
- elseif command=="dance" and p[name].admin==true then
- for name,player in pairs(tfm.get.room.playerList) do
- p[name].randomerino=math.random(1,3)
- end
- dance=true
- elseif command=="danceoff" and p[name].admin==true then
- dance=false
- elseif command=="mods" then
- message=""
- for k,v in pairs(tfm.get.room.playerList) do
- if p[k].admin==true then
- message=message..tostring(k)..", "
- end
- end
- ui.updateTextArea(1, "<p align='center'><b><font size='15'>Moderatorii sunt: "..string.sub(message,1,-3)..".</font></b></p>", name)
- elseif command=="new" and name==questioner then
- if p[name].new==false then
- print("true")
- tfm.exec.movePlayer(answerer,400,320,false,0,0,false)
- answererold=answerer
- answerer=""
- choose=true
- p[name].new=true
- else
- ui.updateTextArea(1, "<p align='center'><b><font size='30'>You can only !new ONCE</font></b></p>", nil)
- end
- elseif command=="join" and p[name].spectator==true then
- if p[name].ban==false then
- ui.updateTextArea(1, "<p align='center'><b><font size='30'>"..name.." s-a alăturat jocului! :D</font></b></p>", nil)
- tfm.exec.respawnPlayer(name)
- tfm.exec.movePlayer(name,400,320,false,0,0,false)
- p[name].spectator=false
- table.insert(players,name)
- elseif p[name].ban==true then
- ui.updateTextArea(1, "<p align='center'><b><font size='30'>Ai fost banat, deci nu poți să te alături jocului:(</font></b></p>", name)
- end
- elseif command=="skip" and p[name].admin==true then
- timestamp=os.time()
- skip=true
- elseif string.sub(command,0,1) == "t" and p[name].admin==true then
- message=string.sub(command,3)
- ui.updateTextArea(1, "<p align='center'><b><font size='15' color='#ED67EA'>[~#T/D Moderation] "..message.."</font></b></p>", nil)
- elseif command=="restart" and p[name].admin==true then
- tfm.exec.newGame("@6411544")
- elseif string.sub(command,0,5)=="watch" then
- if string.sub(command,7)=="" then
- p[name].spectator=true
- ui.updateTextArea(1, "<p align='center'><b><font size='30'>"..name.." este acum spectator :(</font></b></p>", nil)
- ui.updateTextArea(1,"<b><p align = 'center'><font size='30'>Type !join să te alături jocului.</font></p></b>",name)
- if name==questioner or name==answerer then
- questioner=""
- answerer=""
- tfm.exec.movePlayer(questioner,400,320,false,0,0,false)
- tfm.exec.movePlayer(answerer,400,320,false,0,0,false)
- timestamp=os.time()
- skip=true
- end
- for i=1,#players do
- if players[i]==name then
- table.remove(players,i)
- end
- end
- else
- if p[name].admin==true then
- message=string.sub(command,7)
- message=string.upper(string.sub(message,0,1))..string.sub(message,2)
- for k,v in pairs(tfm.get.room.playerList) do
- if k==message and p[k].spectator==false then
- if k==questioner or k==answerer then
- skip=true
- timestamp=os.time()
- end
- p[k].spectator=true
- ui.updateTextArea(1, "<p align='center'><b><font size='30'>"..k.." este acum spectator :(</font></b></p>", nil)
- ui.updateTextArea(1,"<b><p align = 'center'><font size='30'>Type !join să te alături jocului.</font></p></b>",k)
- for i=1,#players do
- if players[i]==k then
- table.remove(players,i)
- end
- end
- end
- end
- end
- end
- elseif command=="help" then
- ui.addPopup(999,0,"<p align = 'center'><font size='40' face='impact'>Truth or Dare</font></p><font size='20' color='#FF0000'><b>About the game</b></font><font size='15'>\nEvery game, everyone will have the chance to be the Asker. On the first popup as an asker, u can click 'Yes' to randomize a answerer, or 'No' to type a particular person in room. This is similar for almost all other popups, where 'Yes' is for random and 'No' is for typing out yourself. If you are the asker, you can also type '#(number)' to give the question number of the truth/dare in the random list. There are currently <b>"..#truth.."</b> random truths and <b>"..#dare.."</b> random dares, so if you have any feedback feel free to tell me.\n<font color='#00FF00'>Created by Mousetat</font> \nForum Thread: atelier801.com//topic?f=6&t=814350&p=1 \n</font><font face='impact' size='30'>Type !commands to see the list of commands</font>",name,100,50,600,true)
- elseif command=="commands" then
- if p[name].admin==true then
- ui.addPopup(999,0,"<b><font size='20' color='#FFFF00'>COMENZI</font>\n!join să te alături jocului dacă ești spectator sau ai venit de pe altă sală.\n!watch devi spectator.\n!mods să vezi toți moderatorii curenți pe această sală.\n!clear să înlături toate obiectele invocate de șaman.\n!new să pui pe altcineva să îți raspundă la întrebare(doar o altă persoană)(asker only).\n!help să vezi informațiile despre joc.\n<font size='20' color='#EB1D51'>COMENZILE ADMINULUI</font>\n!watch (nume) să faci pe cineva spectator.\n!s (nume) să devină șaman.\n!admin (nume) să faci pe cineva admin\n!dance/!danceoff faci pe toți să/să nu danseze.\n!t (message) să scrii un mesaj tuturor de pe sală.\n!restart să dai restart la joc (dacă e buguit).\n!skip să sari peste rândul cuiva.\n!ban (nume) (motiv) să banezi pe cinveva (nu este atenționat.)</b>",name,100,50,600,true)
- elseif p[name].admin==false then
- ui.addPopup(999,0,"<b><font size='20' color='#FFFF00'>COMMANDS</font>\n!join să te alături jocului dacă ești spectator sau ai venit de pe altă sală.\n!watch devi spectator.\n!mods să vezi toți moderatorii curenți pe această sală.\n!clear să înlături toate obiectele invocate de șaman.\n!new să pui pe altcineva să îți raspundă la întrebare(doar o altă persoană)(asker only).\n!help să vezi informațiile despre joc.",name,100,50,600,true)
- end
- elseif string.sub(command,0,3)=="ban" and p[name].admin==true then
- local c=0
- local reason=""
- if string.find(command," ",5)==nil then
- message=string.sub(command,5)
- else
- c=string.find(command," ",5)
- print(c)
- message=string.sub(command,5,c-1)
- reason=string.sub(command,c+1)
- print(reason)
- end
- message=string.upper(string.sub(message,0,1))..string.sub(message,2)
- for k,v in pairs(tfm.get.room.playerList) do
- if message==k then
- ui.updateTextArea(1, "<p align='center'><b><font size='15' color='#ED67EA'>[~#T/D Moderation] "..message.." a fost banat pentru 9999 ore. Motiv: "..reason.."</font></b></p>", nil)
- p[message].ban=true
- tfm.exec.killPlayer(k)
- for i=1,#players do
- if players[i]==k then
- table.remove(players,i)
- end
- end
- end
- end
- elseif string.sub(command,0,5)=="unban" and p[name].admin==true then
- message=string.sub(command,7)
- message=string.upper(string.sub(message,0,1))..string.sub(message,2)
- for k,v in pairs(tfm.get.room.playerList) do
- if message==k then
- ui.updateTextArea(1, "<p align='center'><b><font size='15' color='#ED67EA'>[~#T/D Moderation] "..message.." a fost debanat.</font></b></p>", nil)
- p[message].ban=false
- tfm.exec.respawnPlayer(k)
- table.insert(players,k)
- end
- end
- elseif string.sub(command,0,5)=="admin" and p[name].admin==true then
- message=string.sub(command,7)
- message=string.upper(string.sub(message,0,1))..string.sub(message,2)
- for k,v in pairs(tfm.get.room.playerList) do
- if message==k then
- ui.updateTextArea(1, "<p align='center'><b><font size='15' color='#ED67EA'>[~#T/D Moderation] "..message.." este acum moderator!</font></b></p>", nil)
- p[message].admin=true
- end
- end
- elseif string.sub(command,0,7)=="unadmin" and p[name].admin==true then
- message=string.sub(command,9)
- message=string.upper(string.sub(message,0,1))..string.sub(message,2)
- for k,v in pairs(tfm.get.room.playerList) do
- if message==k then
- ui.updateTextArea(1, "<p align='center'><b><font size='15' color='#ED67EA'>[~#T/D Moderation] "..message.." nu mai este moderator!</font></b></p>", nil)
- p[message].admin=false
- end
- end
- end
- end
- function eventLoop(time,remaining)
- if dance==true then
- for name,player in pairs(tfm.get.room.playerList) do
- if p[name].randomerino==1 then
- tfm.exec.playEmote(name,0,nil)
- elseif p[name].randomerino==2 then
- tfm.exec.playEmote(name,15,nil)
- elseif p[name].randomerino==3 then
- tfm.exec.playEmote(name,16,nil)
- end
- end
- end
- numplayers=#players
- for k,v in pairs(tfm.get.room.playerList) do
- if p[k].ban==true then
- ui.updateTextArea(1,"<b><p align = 'center'><font size='30'>Ai fost banat. :(</font></p></b>",k)
- elseif p[k].spectator==true then
- ui.updateTextArea(1,"<b><p align = 'center'><font size='30'>Type !join să te alături jocului.</font></p></b>",k)
- end
- end
- local IDList={}
- for id, object in pairs(tfm.get.room.objectList) do
- table.insert(IDList, id)
- end
- for i, id in pairs(IDList) do
- if others[id].summonobject==true and timestamplol[id]<os.time()-3000 then
- tfm.exec.removeObject(id)
- others[id].summonobject=false
- end
- end
- if numplayers<2 then
- one=true
- else
- one=false
- end
- if one==true then
- ui.updateTextArea(1, "<p align='center'><b><font size='15'>Sunt necesari cel puțin 2 jucători ca jocul să continue</font></b></p>", nil)
- timestamp=os.time()-4000
- elseif timestamp < os.time()-10000 and begin==false then
- timestamp=os.time()
- begin=true
- restart=false
- ui.updateTextArea(1, "<p align='center'><b><font size='30'>Să începem jocul! </font></b></p>", nil)
- for name,player in pairs(tfm.get.room.playerList) do
- tfm.exec.movePlayer(name,400,320,false,0,0,false)
- end
- elseif timestamp < os.time()-5000 and begin==false then
- local i=1
- local long=""
- local hname=""
- while i<=numplayers do
- hname=players[i]
- if p[hname].spectator==false and tfm.get.room.playerList[hname].isDead==false and p[hname].out==false then
- long=long..tostring(players[i])..", "
- end
- i=i+1
- end
- ui.updateTextArea(1, "<p align='center'><b><font size='15'>Participanții sunt: "..string.sub(long,1,-3)..".</font></b></p>", nil)
- elseif timestamp < os.time()-3000 and begin==false and restart==true then
- ui.updateTextArea(1, "<p align='center'><b><font size='20'>Din moment ce a fost rândul fiecăruia, se restartează jocul...", nil)
- end
- if begin==true then
- if timestamp < os.time()-3000 and start==true then
- tfm.exec.movePlayer(questioner,400,320,false,0,0,false)
- tfm.exec.movePlayer(answerer,400,320,false,0,0,false)
- answerer=""
- questioner=""
- local j=1
- local i=0
- while j<=numplayers do
- pname=players[j]
- if p[pname].questioners==false and tfm.get.room.playerList[pname].isDead==false and p[pname].spectator==false and p[pname].out==false then
- i=i+1
- end
- j=j+1
- end
- if i>0 then
- eventTruthOrDare()
- else
- local j=1
- while j<=numplayers do
- local name=players[j]
- p[name].questioners=false
- j=j+1
- end
- restart=true
- timestamp=os.time()
- begin=false
- end
- end
- if choose==true and one==false then
- rand=math.random(1,numplayers)
- answerer=players[rand]
- if questioner==answerer or tfm.get.room.playerList[answerer].isDead or p[answerer].spectator==true or answerer==answererold or p[answerer].out==true then
- ui.updateTextArea(1, "<p align='center'><b><font size='30'>Ala bala portocala...</font></b></p>", nil)
- tfm.exec.movePlayer(answerer,400,320,false,0,0,false)
- answerer=""
- else
- choose=false
- ui.updateTextArea(1, "<b><font size='15'>"..answerer.." va trebui să răspundă la întrebare! Așteptăm să aleagă adevăr sau provocare...</font></b>", nil)
- ui.addPopup(3,1,"Ai fost ales să răspunzi la întrebare! Vrei adevăr? Dacă Nu, o să alegi automat provocare!!",answerer,250,50,300,true)
- end
- elseif choosey==true and one==false then
- rand=math.random(1,numplayers)
- questioner=players[rand]
- if p[questioner].questioners==false and tfm.get.room.playerList[questioner].isDead==false and p[questioner].spectator==false or p[questioner].out==false then
- choosey=false
- p[questioner].questioners=true
- ui.updateTextArea(1, "<b><font size='15'>"..questioner.." va trebui să pună o întrebare! Așteptăm să aleagă un responsabil ...</font></b>", nil)
- ui.addPopup(1,1,"Vrei o persoană întâmplătoare care să-ți răspundă la întrebare?? Dacă <b>Nu</b>, trebuie să tastezi numele jucătorului",questioner,250,50,300,true)
- else
- ui.updateTextArea(1, "<p align='center'><b><font size='30'>Ala bala portocala...</font></b></p>", nil)
- tfm.exec.movePlayer(questioner,400,320,false,0,0,false)
- questioner=""
- end
- end
- if skip==true then
- ui.updateTextArea(1, "<p align='center'><b><font size='30'>Sărim peste rândul său...</font></b></p>", nil)
- tfm.exec.movePlayer(questioner,400,320,false,0,0,false)
- tfm.exec.movePlayer(answerer,400,320,false,0,0,false)
- answerer=""
- questioner=""
- if timestamp < os.time()-3000 then
- start=true
- skip=false
- end
- end
- tfm.exec.movePlayer(questioner,120,120,false,0,0,false)
- tfm.exec.movePlayer(answerer,680,120,false,0,0,false)
- end
- end
- function eventTruthOrDare()
- start=false
- ui.removeTextArea(2)
- ui.removeTextArea(3)
- choosey=true
- end
- function eventPopupAnswer(id, name, answer)
- if id==1 and name==questioner then
- if answer=="yes" then
- answererold=""
- choose=true
- elseif answer=="no" then
- ui.addPopup(2,2,"Cine vrei să-ți răspundă la întrebare?",questioner,250,50,300,true)
- end
- elseif id==2 and name==questioner then
- x=1
- found=false
- answer=string.upper(string.sub(answer,0,1))..string.sub(answer,2)
- answer=string.gsub(answer, "<", "<")
- answer=string.gsub(answer, "http", "")
- while x<=numplayers do
- print(players[x])
- if answer==players[x] then
- answerer=answer
- if questioner==answerer or tfm.get.room.playerList[answerer].isDead or p[answerer].spectator==true or p[answerer].out==true then
- answerer=""
- found=false
- else
- ui.updateTextArea(1, "<b><font size='15'>"..answerer.." va trebui să răspundă la întrebare! Așteptăm să aleagă adevăr sau provocare...</font></b>", nil)
- ui.addPopup(3,1,"Ai fost ales să răspunzi la întrebare! Vrei adevăr? Dacă <b>Nu</b>, o să alegi automat provocare!",answerer,250,50,300,true)
- found=true
- end
- end
- x=x+1
- end
- if found==false then
- ui.addPopup(2,2,"There is no such answerer in the room. Type out the exact username of your answerer.",questioner,250,50,300,true)
- end
- elseif id==3 and name==answerer then
- if answer=="yes" then
- ui.updateTextArea(1, "<b><font size='15'>"..answerer.." a ales Adevăr! Așteptăm întrebarea de la "..questioner.."...</font></b>", nil)
- ui.addPopup(4,1,"Vrei o întrebare la întămplare? Dacă <b>Nu</b>, you will have to submit a question.",questioner,250,50,300,true)
- elseif answer=="no" then
- ui.updateTextArea(1, "<b><font size='15'>"..answerer.." a ales Provocare! Așteptăm provocarea de la "..questioner.."...</font></b>", nil)
- ui.addPopup(5,1,"Vrei o provocare la întămplare? Dacă <b>Nu</b>, you will have to submit a Dare.",questioner,250,50,300,true)
- end
- elseif id==4 and name==questioner then
- if answer=="yes" then
- question=truth[math.random(1,#truth)]
- ui.updateTextArea(1, "<b><font size='15'>"..questioner.." a ales o întrebare random! Așteptăm ca "..answerer.." să răspundă...</font></b>", nil)
- ui.addTextArea(2,"<b><font size='20'>Truth: "..question.."</font></b>",nil,165,20,470,120,0x324650,0x212F36,0.8,true)
- ui.addPopup(8,2,"<b>Tastează-ți răspunsul mai jos</b>",answerer,250,175,300,true)
- elseif answer=="no" then
- ui.addPopup(6,2,"Tastează-ți propria întrebare mai jos, sau scrie #(număr) pentru o întrebare dintr-o listă random.",questioner,250,50,300,true)
- end
- elseif id==5 and name==questioner then
- if answer=="yes" then
- question=dare[math.random(1,#dare)]
- ui.updateTextArea(1, "<b><font size='15'>"..questioner.." a ales o provocare la întâmplare! Așteptăm ca "..answerer.." să răspundă...</font></b>", nil)
- ui.addTextArea(2,"<b><font size='20'>Dare: "..question.."</font></b>",nil,165,20,470,120,0x324650,0x212F36,0.8,true)
- ui.addPopup(9,1,"<b><font size='15'>Fă ce"..questioner.."te-a provocat să faci! Dacă apeși 'da' promiți că vei face acest lucru!</font><b>",answerer,250,175,300,true)
- elseif answer=="no" then
- ui.addPopup(7,2,"Tastează-ți propria provocare mai jos, sau scrie #(număr) pentru o provocare dintr-o listă random.",questioner,250,50,300,true)
- end
- elseif id==6 and name==questioner then
- answer=string.gsub(answer, "<", "<")
- answer=string.gsub(answer, "http", "")
- if answer=="" then
- ui.addPopup(6,2,"Tastează-ți propria întrebarea mai jos.",questioner,250,50,300,true)
- elseif string.sub(answer,0,1)=="#" and tonumber(string.sub(answer,2,3))<=#truth then
- question=truth[tonumber(string.sub(answer,2,3))]
- ui.updateTextArea(1, "<b><font size='15'>"..questioner.." a pus o întrebare! Așteptăm ca "..answerer.." să răspundă...</font></b>", nil)
- ui.addTextArea(2,"<b><font size='20'>Truth: "..question.."</font></b>",nil,165,20,470,120,0x324650,0x212F36,0.8,true)
- ui.addPopup(8,2,"Tastează răspunsul tău mai jos.",answerer,250,175,300,true)
- elseif string.sub(answer,0,1)=="#" and tonumber(string.sub(answer,2,3))>#truth then
- ui.addPopup(6,2,"Trebuie sa introduci un număr de provocare mai mic sau egal cu "..tostring(#truth),questioner,250,50,300,true)
- else
- question=answer
- ui.updateTextArea(1, "<b><font size='15'>"..questioner.." a pus o întrebare! Așteptăm ca "..answerer.." să răspundă...</font></b>", nil)
- ui.addTextArea(2,"<b><font size='20'>Truth: "..question.."</font></b>",nil,165,20,470,120,0x324650,0x212F36,0.8,true)
- ui.addPopup(8,2,"Tastează răspunsul tău mai jos.",answerer,250,175,300,true)
- end
- elseif id==7 and name==questioner then
- answer=string.gsub(answer, "<", "<")
- answer=string.gsub(answer, "http", "")
- if answer=="" then
- ui.addPopup(7,2,"Tastează-ți propria provocare mai jos.",questioner,250,50,300,true)
- elseif string.sub(answer,0,1)=="#" and tonumber(string.sub(answer,2,3))<=#dare then
- if tonumber(string.sub(answer,2,3))==14 then
- mapcomplete=true
- end
- question=dare[tonumber(string.sub(answer,2,3))]
- ui.updateTextArea(1, "<b><font size='15'>"..questioner.." has typed a Dare question! Așteptăm ca "..answerer.." să răspundă...</font></b>", nil)
- ui.addTextArea(2,"<b><font size='15'>Dare: "..question.."</font></b>",nil,165,20,470,120,0x324650,0x212F36,0.8,true)
- ui.addPopup(9,1,"<b><font size='15'>Fă "..questioner.."te-a provocat să faci! Dacă apeși 'da' promiți că vei face acest lucru!</font><b>",answerer,250,175,300,true)
- elseif string.sub(answer,0,1)=="#" and tonumber(string.sub(answer,2,3))>#dare then
- ui.addPopup(7,2,"You have to type a Dare number less than or equal to "..tostring(#dare),questioner,250,50,300,true)
- else
- question=answer
- ui.updateTextArea(1, "<b><font size='15'>"..questioner.." has typed a Dare question! Așteptăm ca "..answerer.." să răspundă...</font></b>", nil)
- ui.addTextArea(2,"<b><font size='15'>Dare: "..question.."</font></b>",nil,165,20,470,120,0x324650,0x212F36,0.8,true)
- ui.addPopup(9,1,"<b><font size='15'>Fă "..questioner.."te-a provocat să faci! Dacă apeși 'da' promiți că vei face acest lucru!</font><b>",answerer,250,175,300,true)
- end
- elseif id==8 and name==answerer then
- answer=string.gsub(answer, "<", "<")
- answer=string.gsub(answer, "http", "")
- ans = answer
- if ans=="" then
- ui.addPopup(8,2,"You have to type something as your Truth Answer",answerer,250,175,300,true)
- else
- ui.addTextArea(3,"<b><font size='20'>Answer: "..ans.."</font></b>",nil,165,140,470,120,0x324650,0x212F36,0.8,true)
- ui.updateTextArea(1, "<b><font size='15'>"..answerer.." has answered the question! Așteptăm ca "..questioner.." să evalueze răspunsul</font></b>", nil)
- ui.addPopup(10,1,"<b><font size='15'>Are you satisfied with the answer?",questioner,250,50,300,true)
- end
- elseif id==9 and name==answerer then
- if answer=="yes" then
- ui.addTextArea(3,"<b><font size='20'>Eu, "..answerer..", accept provocare și promit că voi face acest lucru.</font></b>",nil,165,140,470,120,0x324650,0x212F36,0.8,true)
- if mapcomplete==true then
- ui.updateTextArea(1, "<b><font size='15'>"..answerer.." este un adevărat luptător! El/Ea va trebui sa compleze mapa înainte de a intra din nou în joc. Începem un joc nou...</font></b>", nil)
- p[answerer].out=true
- mapcomplete=false
- for i=1,#players do
- if players[i]==answerer then
- table.remove(players,i)
- end
- end
- else
- ui.updateTextArea(1, "<b><font size='15'>"..answerer.." este un adevărat luptător! Începem un joc nou...</font></b>", nil)
- end
- timestamp=os.time()
- answerer=""
- questioner=""
- start=true
- for name,player in pairs(tfm.get.room.playerList) do
- tfm.exec.movePlayer(name,400,320,false,0,0,false)
- p[name].new=false
- print("false")
- end
- elseif answer=="no" then
- mapcomplete=false
- ui.updateTextArea(1, "<b><font size='15'>"..answerer.." este un laș! Începem un joc nou...</font></b>", nil)
- ui.addTextArea(3,"<b><font size='20'>Eu, "..answerer..", sunt un laș, așa ca nu îndrăznesc să fac ceea ce m-ai provocat să făc.</font></b>",nil,165,140,470,120,0x324650,0x212F36,0.8,true)
- timestamp=os.time()
- answerer=""
- questioner=""
- start=true
- for name,player in pairs(tfm.get.room.playerList) do
- tfm.exec.movePlayer(name,400,320,false,0,0,false)
- p[name].new=false
- print("false")
- end
- end
- elseif id==10 and name==questioner then
- if answer=="yes" then
- ui.updateTextArea(1, "<b><font size='15'>"..questioner.." este mulțumit de acest răspuns! Începem un joc nou...</font></b>", nil)
- timestamp=os.time()
- answerer=""
- questioner=""
- start=true
- for name,player in pairs(tfm.get.room.playerList) do
- tfm.exec.movePlayer(name,400,320,false,0,0,false)
- p[name].new=false
- print("false")
- end
- elseif answer=="no" then
- ui.updateTextArea(1, "<b><font size='15'>"..questioner.." is a not satisfied with the answer...:( Începem un joc nou...</font></b>", nil)
- timestamp=os.time()
- answerer=""
- questioner=""
- start=true
- for name,player in pairs(tfm.get.room.playerList) do
- tfm.exec.movePlayer(name,400,320,false,0,0,false)
- p[name].new=false
- print("false")
- end
- end
- end
- end
- function eventPlayerLeft(name)
- ui.updateTextArea(1, "<p align='center'><b><font size='15'>"..name.." a părăsit sala... Ce laș!</font></b></p>", nil)
- if questioner==name or answerer==name then
- timestamp=os.time()
- skip=true
- end
- for i=1,#players do
- if players[i]==name then
- table.remove(players,i)
- end
- end
- end
- function eventPlayerDied(name)
- if p[name].spectator==false then
- tfm.exec.respawnPlayer(name)
- end
- if p[name].ban==true then
- tfm.exec.killPlayer(name)
- if name==questioner or name==answerer then
- timestamp=os.time()
- skip=true
- end
- end
- end
- function eventPlayerWon(playerName,timeElapsed, timeElapsedSinceRespawn)
- tfm.exec.respawnPlayer(playerName)
- if p[playerName].out==true then
- p[playerName].out=false
- table.insert(players,playerName)
- print("yes")
- ui.updateTextArea(1, "<p align='center'><b><font size='15'>"..playerName.." a completat mapa în "..(timeElapsedSinceRespawn/100).." secunde! El/Ea s-a alăturat din nou jocului!</font></b></p>", nil)
- else
- ui.updateTextArea(1, "<p align='center'><b><font size='15'>"..playerName.." a completat mapa în "..(timeElapsedSinceRespawn/100).." secunde!</font></b></p>", nil)
- end
- end
- function eventSummoningEnd(playerName, objectType, xPosition, yPosition, angle, xSpeed, ySpeed, other)
- timestamplol[other.id]=os.time()
- others[other.id]={summonobject=true}
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement