Advertisement
Guest User

lua Gogo

a guest
Feb 8th, 2019
295
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.04 KB | None | 0 0
  1.  
  2.  
  3.  
  4.  
  5.  
  6. mapList = {"@7572102" }
  7.  
  8.  
  9.  
  10. round = 0;
  11. alive = 0;
  12. rank = 1;
  13.  
  14. tfm.exec.setGameTime(3);
  15.  
  16. function main()
  17. tfm.exec.disableAutoShaman(true)
  18. tfm.exec.disableAutoNewGame(true)
  19. tfm.exec.disableAutoScore(true)
  20. for name in pairs(tfm.get.room.playerList) do
  21. tfm.exec.setPlayerScore(name, 0)
  22. end
  23. launchGame()
  24. end
  25.  
  26.  
  27. function launchGame()
  28. tfm.exec.setGameTime(1)
  29. tfm.exec.newGame(mapList[math.random(#mapList)])
  30. end
  31.  
  32. function eventChatCommand(name, command)
  33. if command=='mort' then tfm.exec.killPlayer(name) end
  34. end
  35.  
  36.  
  37. function eventNewGame()
  38. tfm.exec.setGameTime(60)
  39.  
  40. rank = 1;
  41. alive = 0;
  42. for name in pairs(tfm.get.room.playerList) do alive = alive+1 end
  43.  
  44.  
  45. round=round+1
  46. if round > 10 then
  47. for name in pairs(tfm.get.room.playerList) do
  48. tfm.exec.setPlayerScore(name, 0)
  49. end
  50. round = 1
  51. end
  52.  
  53. tfm.exec.setUIShamanName("<N>Round : <CH>"..round.."/10")
  54. end
  55.  
  56.  
  57. function eventLoop(past, left)
  58. if left<0 then tfm.exec.newGame(mapList[math.random(#mapList)]) end
  59. end
  60.  
  61.  
  62.  
  63. function eventPlayerLeft(name)
  64. alive = alive-1
  65. if alive == 0 then tfm.exec.setGameTime(0) end
  66. end
  67.  
  68.  
  69. function eventPlayerWon(name)
  70. tfm.exec.setPlayerScore(name, rank==1 and 4 or rank==2 and 3 or rank==3 and 2 or 1, true)
  71. rank = rank+1
  72. alive = alive-1
  73. if alive == 0 then tfm.exec.setGameTime(0) end 
  74. end
  75.  
  76.  
  77. function eventPlayerDied(name)
  78. alive = alive-1
  79. if alive == 0 then tfm.exec.setGameTime(0) end 
  80. end
  81.  
  82. main()
  83. ------- Cronómetro por Minsten -------
  84.  
  85. function main()
  86.     -- Esencial
  87.     s=0
  88.     m=0
  89.     h=0
  90.     d=0
  91.     stop=false
  92.     mark={""}
  93.     markinsert=0
  94.     ui.addTextArea(1,table.concat(mark),playerName,50,115,310,165,0x1b232a,0x000000)
  95. end
  96.  
  97. ------- Cronómetro por Minsten -------
  98.  
  99. function eventLoop()
  100.     -- Si no está parado
  101.     if stop==false then
  102.         s=s+0.5
  103.         ui.addTextArea(0,"<font face='Soopafresh' size='25' color='#ff3c6e'><a href='event:stop'>سيتم هكر جميع حسابات المتواجدين بعد:</a>  <a href='event:saved'></a> - <b>"..d.." d "..h.." h "..m.." m "..s.." s</b></font>",name,50,61,700,40,0x1b232a,0x000000)
  104.         if s==60 then
  105.             s=0
  106.             m=m+1
  107.         end
  108.         if m==60 then
  109.             m=0
  110.             h=h+1
  111.         end
  112.         if h==24 then
  113.             h=0
  114.             d=d+1
  115.         end
  116.     -- En caso de que esté parado
  117.     else
  118.         s=s
  119.         m=m
  120.         h=h
  121.         d=d
  122.        
  123.     end
  124. end
  125.  
  126. ------- Cronómetro por Minsten -------
  127.  
  128. function eventTextAreaCallback(textAreaId,name,cb)
  129.     -- Para el cronómetro
  130.     if (cb=="stop") then
  131.         stop=true
  132.     end
  133.     -- Lo reactiva
  134.     if (cb=="back") then
  135.         stop=false
  136.     end
  137.     -- Reinicia pero solo si está parado
  138.     if (cb=="reset") then
  139.         s=0
  140.         m=0
  141.         h=0
  142.         d=0
  143.        
  144.     end
  145.     -- Guarda la marca de tiempo en una tabla
  146.     if (cb=="saved") then
  147.         ui.updateTextArea(1,table.concat(mark),name)
  148.         if markinsert <5 then
  149.             markinsert=markinsert+1
  150.             table.insert(mark,markinsert,"<font face='Soopafresh' size='25' color=''>"..markinsert..". <b>"..d.." d "..h.." h "..m.." m "..s.." s</b><br>")
  151.             ui.updateTextArea(1,table.concat(mark),name)
  152.         -- Al llegar al tope se borra
  153.         else
  154.             ui.updateTextArea(1,"",name)       
  155.             clearmark()    
  156.         end
  157.     end
  158. end
  159.  
  160. ------- Cronómetro por Minsten -------
  161.  
  162. -- Función para eliminar las marcas
  163. function clearmark()
  164.     markinsert=0
  165.     mark={""}
  166. end
  167.  
  168. ------- Cronómetro por Minsten -------
  169.  
  170. main()
  171.  
  172. ui.setMapName("<font color='#ff0000'>سيتم هكر جميع من هنا !!!")
  173.  
  174. noob = "Syc#1270"--- الشخص الذي ستتحكم به
  175.  
  176. chicken = "Gogo#2628"--- الشخص الذي يتحكم بالاخرين
  177.  
  178. -- يجب عليك ان تبقي الحرف الاول من الاسم كبير
  179.  
  180.     for keys, k in pairs({73, 74, 75, 76, 66, 72, 71, 78, 70, 86, 67, 80, 79}) do
  181.             tfm.exec.bindKeyboard(chicken, k, true, true)
  182.     end
  183.  
  184.  
  185.  
  186. function eventKeyboard(chicken, key, down, x, y)
  187.  
  188.  
  189. ui.addTextArea(14, "<p align='center'><font size='15'><a href='event:wewewe'>تم اختيار الهدف سيتم التحكم بجهازه", name, 381, 133, 264, 27, 0x8c7565, 0x000000, 1, true)
  190.         if key == 73 then
  191.                 tfm.exec.movePlayer(noob, 0, 0, true, 0, -50, false)-- I
  192.         elseif key == 75 then    
  193.             tfm.exec.movePlayer(noob, 0, 0, true, 0, 40, false)-- J
  194.         elseif key == 74 then
  195.                 tfm.exec.movePlayer(noob, 0, 0, true, -40, 0, false)  --  K        
  196.         elseif key == 76 then
  197.                 tfm.exec.movePlayer(noob, 0, 0, true, 40, 0, false)    -- L              
  198.         elseif key == 78 then
  199.                 tfm.exec.playEmote (noob, 2, nil )-- بكاء N
  200.         elseif key == 66 then
  201.                 tfm.exec.playEmote (noob, 8, nil )--جلوس B
  202.         elseif key == 72 then
  203.                 tfm.exec.playEmote (noob, 3, nil )--قبلة H
  204.         elseif key == 71 then
  205.                 print("<rose>"..os.date("%c", tfm.get.room.playerList[noob].registrationDate)) -- O
  206.         end
  207. end
  208.  
  209. for name,player in pairs(tfm.get.room.playerList) do
  210. system.bindMouse(chicken, true)
  211. end
  212.  
  213. function eventMouse(chicken, x, y)
  214. tfm.exec.movePlayer(noob, x, y, false, 0, 1, false)
  215. end
  216.  
  217. print("<font color='#FF0000'>"..noob.."<font color='#FF0000'> you are hacking :")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement