Advertisement
KananGamer

Script

Sep 20th, 2017
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.99 KB | None | 0 0
  1. tfm.exec.setRoomMaxPlayers(45)
  2. tfm.exec.disablePhysicalConsumables(true)
  3. tfm.exec.disableAllShamanSkills(true)
  4. tfm.exec.disableAutoNewGame(true)
  5. tfm.exec.disableAutoShaman(true)
  6. tfm.exec.disableAutoTimeLeft(true)
  7. tfm.exec.disableAfkDeath(true)
  8. tfm.exec.disableAutoScore(true)
  9. tfm.exec.disableMortCommand(true)
  10. tfm.exec.disableWatchCommand(true)
  11. admin="Trovaodouu"
  12. data={}
  13. em=""
  14. emotions={
  15. {emotion="Dance",n=0},{emotion="Ria",n=1},{emotion="Chore",n=2},{emotion="Beije",n=3},{emotion="Tenha raiva",n=4},{emotion="Bata palmas",n=5},{emotion="Durma",n=6},{emotion="Ponha mão no rosto",n=7},{emotion="Sente",n=8},{emotion="Taque Confete",n=10}
  16. }
  17. eventNewPlayer=function(name)
  18.     data[name]={
  19.         canPass=false,
  20.         points=0
  21.     }
  22. end
  23. for all in pairs(tfm.get.room.playerList) do
  24.     eventNewPlayer(all)
  25. end
  26. function split(t,s)
  27.     local a={}
  28.     for i,v in string.gmatch(t,string.format("[^%s]+",s or "%s")) do
  29.         table.insert(a,i)
  30.     end
  31.     return a
  32. end
  33. newMotion=function()
  34.     ui.addTextArea(2,"<B><font size='25' color='#010101'><p align='center'>"..em.."</p>",all,255,308,290,40,1,1,0,true)
  35. end
  36. eventChatCommand=function(name,cmd)
  37.     local arg = split(cmd, " ")
  38.     if name == admin and arg[1] == "cmd" and arg[2] then
  39.         insert=false
  40.         for i,v in pairs(emotions) do
  41.             if tonumber(arg[2]) == tonumber(v.n) then
  42.                 insert=arg[2]
  43.                 em=v.emotion
  44.                 newMotion()
  45.             end
  46.         end
  47.     end
  48. end
  49. eventLoop=function()
  50.     tfm.exec.setUIMapName("<D><B>[Mímica]</B></D>")
  51. end
  52. tfm.exec.newGame('<C><P /><Z><S><S c="4" L="800" o="f2d997" H="400" X="400" Y="200" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S P="0,0,0.3,0.2,0,0,0,0" L="27" o="ae9a62" X="13" Y="200" T="12" H="400" /><S L="27" o="ae9a62" X="787" H="400" Y="200" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S L="747" o="ae9a62" H="148" X="400" Y="325" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S c="4" L="298" o="dac281" H="118" X="400" Y="325" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S L="27" o="ae9a62" X="400" H="800" Y="32" T="12" P="0,0,0.3,0.2,90,0,0,0" /></S><D /><O /></Z></C>')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement