Advertisement
enderpro100

killing people with cc tweaked

Dec 5th, 2020 (edited)
774
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.96 KB | None | 0 0
  1. --- Program : Killing people with command computer (vendetta)
  2. --- Author : LightKnight51
  3. --- Last modification : 05/12/2020
  4.  
  5.  
  6. --- Functions
  7.  
  8. function askPerson()
  9.     person = ""
  10.     print("Nom de la personne ?")
  11.     while true do
  12.         person = tostring(read())
  13.         if not person or person == "" then
  14.             print("Valeur incorrecte !")
  15.         else
  16.             break
  17.         end
  18.     end
  19.     return person
  20. end
  21.  
  22. local arg = { ... }
  23.  
  24. function mainProgram()
  25.     --person = askPerson()
  26.     -- while true do
  27.     --  time = math.random(50)
  28.     --  commands.exec("tell " .. arg[1] .. " rip")
  29.     --  time = math.random(50)
  30.     --  sleep(time)
  31.     --  commands.exec("kill " .. arg[1])
  32.     --  sleep(time)
  33.     -- end
  34.     sCommand = ""
  35.     i = 1
  36.     while true do
  37.         if arg[i] ~= nil then
  38.             if i == 1 then
  39.                 sCommand = arg[i]
  40.             else
  41.                 sCommand = sCommand .. " " .. arg[i]
  42.             end
  43.         else
  44.             break
  45.         end
  46.         i = i + 1
  47.     end
  48.     commands.exec(sCommand)
  49. end
  50.  
  51. mainProgram()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement