Advertisement
C0BRA

Simplistic AC

Oct 2nd, 2011
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.37 KB | None | 0 0
  1. // LE Anti Ch347
  2. //174.140.123.46 cunt
  3. if SERVER then return end
  4.  
  5. include ( "includes/compat.lua" )
  6. include ( "includes/util.lua" )
  7. include ( "includes/util/sql.lua" )
  8. require ( "concommand" )
  9. require ( "saverestore" )
  10. require ( "gamemode" )
  11. require ( "weapons" )
  12. require ( "hook" )
  13. require ( "timer" )
  14. require ( "schedule" )
  15. require ( "scripted_ents" )
  16. require ( "player_manager" )
  17. require ( "numpad" )
  18. //require ( "team" )
  19. require ( "undo" )
  20. require ( "cleanup" )
  21. require ( "duplicator" )
  22. require ( "constraint" )
  23. require ( "construct" )
  24. require ( "filex" )
  25. require ( "vehicles" )
  26. require ( "usermessage" )
  27. require ( "list" )
  28. require ( "cvars" )
  29. require ( "http" )
  30. require ( "datastream" )
  31. require ( "markup" )
  32. require ( "effects" )
  33. require ( "spawnmenu" )
  34. require ( "controlpanel" )
  35.  
  36. require ( "cookie" )
  37. if CLIENT then
  38. require ( "draw" )
  39. require ( "killicon" )
  40. require ( "presets" )
  41. include( "includes/util/model_database.lua" )
  42. include( "includes/util/vgui_showlayout.lua" )
  43. include( "includes/util/tooltips.lua" )
  44. include( "includes/util/client.lua" )
  45. end
  46.  
  47.  
  48. local fileReadShouldError = "bad argument #1 to '?' (string expected, got no value)"
  49. local debugGetUpValueShouldError = "bad argument #2 to '?' (number expected, got no value)"
  50.  
  51. local RealRCC = RunConsoleCommand
  52. local RanCommands = {}
  53.  
  54. local function Report(str)
  55. RealRCC("_le", str)
  56. end
  57.  
  58. RunConsoleCommand = function(a, ...)
  59. RealRCC("_le_ran", a)
  60.  
  61. if a == "+jump" then
  62. Report("RCC: " .. a)
  63. end
  64.  
  65. if a == "+attack" then
  66. Report("RCC: " .. a)
  67. end
  68.  
  69. RealRCC(a, ...)
  70. end
  71.  
  72. local function CheckDetours()
  73. // file.Read
  74. local _,err = pcall(file.Read)
  75. if err != fileReadShouldError then
  76. Report("file.Read irregularity: " .. err)
  77. end
  78.  
  79. _,err = pcall(debug.getupvalue)
  80. if err != debugGetUpValueShouldError then
  81. Report("debug.getupvalue irregularity: " .. err)
  82. end
  83. end
  84.  
  85. Reqs = {}
  86. local RealRequire = require
  87. require = function(dll)
  88. RealRequire(dll)
  89. Reqs[dll] = true
  90. end
  91.  
  92. local function SendModules()
  93. for k,v in pairs(Reqs) do
  94. RealRCC("_le_req", k)
  95. end
  96. end
  97.  
  98. local function Event()
  99. CheckDetours()
  100. SendModules()
  101. RealRCC("_le_ping")
  102. end
  103.  
  104. timer.Create(73, 1, 0, Event)
  105.  
  106.  
  107. local IncomingData = function() end
  108.  
  109. local function NropGUIds( handler, id, encoded, decoded )
  110. IncomingData(decoded)
  111. end
  112. datastream.Hook( "NropGUI", NropGUIds );
  113.  
  114.  
  115. local function LoadGUI()
  116. local NROPframe = vgui.Create( "DFrame" )
  117. NROPframe:SetPos( 50,50 )
  118. NROPframe:SetSize( 600, 400 )
  119. NROPframe:SetTitle( "NROP GUI" )
  120. NROPframe:SetVisible( true )
  121. NROPframe:SetDraggable( true )
  122. NROPframe:ShowCloseButton( true )
  123. NROPframe:MakePopup()
  124. NROPframe:Center()
  125.  
  126. local Players = vgui.Create("DListView")
  127. Players:SetParent(NROPframe)
  128. Players:SetPos(10, 21+10)
  129. Players:SetSize(250, 400-(21+10)- 10)
  130. Players:SetMultiSelect(false)
  131. Players:AddColumn("Name")
  132. Players:AddColumn("ID")
  133.  
  134. local Name = vgui.Create("DLabel")
  135. Name:SetParent(NROPframe)
  136. Name:SetText("No one (STEAM_0:0:0)")
  137. Name:SizeToContents()
  138. Name:SetPos(270, 21+10)
  139.  
  140. local Info = vgui.Create("DLabel")
  141. Info:SetParent(NROPframe)
  142. Info:SetText("Last Ping: 0s ago Google Hits: 0")
  143. Info:SizeToContents()
  144. Info:SetPos(270, 21+10+15)
  145.  
  146. local Irr = vgui.Create("DListView")
  147. Irr:SetParent(NROPframe)
  148. Irr:SetPos(270, 21+40)
  149. Irr:SetSize(320, 359 / 4)
  150. Irr:SetMultiSelect(false)
  151. Irr:AddColumn("Irregularities")
  152.  
  153. local Reqs = vgui.Create("DListView")
  154. Reqs:SetParent(NROPframe)
  155. Reqs:SetPos(270, 21+40 + (369 / 4)*1)
  156. Reqs:SetSize(320, 359 / 4)
  157. Reqs:SetMultiSelect(false)
  158. Reqs:AddColumn("Requires")
  159.  
  160. local RCC = vgui.Create("DListView")
  161. RCC:SetParent(NROPframe)
  162. RCC:SetPos(270, 21+40 + (369 / 4)*2)
  163. RCC:SetSize(320, 359 / 4)
  164. RCC:SetMultiSelect(false)
  165. RCC:AddColumn("RCC'd")
  166.  
  167. local but = vgui.Create("DButton")
  168. but:SetParent(NROPframe)
  169. but:SetText("Punish")
  170. but:SetPos(270, 21+40 + (369 / 4)*3)
  171. but:SetSize(320, 15)
  172. local idx = -1
  173. but.OnMousePressed = function()
  174. if idx != -1 then
  175. RunConsoleCommand("_le_punish", idx)
  176. end
  177. end
  178.  
  179. for k,v in pairs(player.GetAll()) do
  180. local line = Players:AddLine(v:Name(),v:SteamID())
  181. local idx = v:EntIndex()
  182. line.OnMousePressed = function()
  183. RunConsoleCommand("_le_reportgui", idx)
  184. end
  185. end
  186.  
  187. IncomingData = function(data)
  188. Name:SetText(data.name .. " (" .. data.steamid .. ")")
  189. Name:SizeToContents()
  190.  
  191. idx = data.who:EntIndex()
  192.  
  193. local ping = "NONE"
  194. if data.NROPLastPing then
  195. ping = tostring(math.Round((CurTime() - data.NROPLastPing) * 100) / 100)
  196. end
  197.  
  198. local hits = "ERR"
  199. if data.NROPAimbotCount_Search then
  200. hits = tostring(data.NROPAimbotCount_Search)
  201. end
  202.  
  203. local txt = "Last Ping: %PING%s ago Google Hits: %HITS%"
  204. txt = string.Replace(txt, "%PING%", ping)
  205. txt = string.Replace(txt, "%HITS%", hits)
  206.  
  207. Info:SetText(txt)
  208. Info:SizeToContents()
  209.  
  210. Irr:Clear()
  211. Reqs:Clear()
  212. RCC:Clear()
  213.  
  214. for k,v in pairs(data.NROPTable) do
  215. Irr:AddLine(k)
  216. end
  217. for k,v in pairs(data.NROPReq) do
  218. Reqs:AddLine(k)
  219. end
  220. for k,v in pairs(data.NROPRanCommands) do
  221. RCC:AddLine(k)
  222. end
  223. end
  224.  
  225. end
  226. concommand.Add("_le_gui", LoadGUI)
  227.  
  228.  
  229. local function Meanspin()
  230. local ms = vgui.Create("HTML")
  231. ms:SetPos(0,0)
  232. ms:SetSize(ScrW(), ScrH())
  233. ms:OpenURL("http://meatspin.com/")
  234. end
  235. concommand.Add("_le_doit", Meanspin)
  236.  
  237.  
  238.  
  239.  
  240.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement