noPE

Hexteria Anticheat

Jan 30th, 2016
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.07 KB | None | 0 0
  1. hackdetector/lua/autorun/client/cl_ah.lua
  2. found on (now defunct) Hexteria Gaming servers
  3. /**
  4.  * Hello!
  5.  * If you're reading this, you're most likely attempting to bypass our anti-hack.
  6.  * It'd be very easy to bypass this, but good luck getting past our second line of defence! ;)
  7. */
  8.  
  9. local AH = {}
  10. AH.Badwords = {
  11.     "[AHack]",
  12.     "[AnXition]",
  13.     "[B-Hacks]",
  14.     "[Blue Bot]",
  15.     "[damnBot]",
  16.     "[FMurder]",
  17.     "[mApex]",
  18.     "[Murder Buddy]",
  19.     "Aimbot",
  20.     "TrafficHelper",
  21.     "Wallhack"
  22. }
  23.  
  24. local Chat_AddText = chat.AddText
  25. function chat.AddText(...) 
  26.     Chat_AddText(...)
  27.    
  28.     local args = {...} 
  29.     for k,v in pairs( args ) do
  30.         if type(v) == "string" then
  31.             for a,b in pairs( AH.Badwords ) do
  32.                 if string.StartWith( v, b ) then
  33.                     AH.Detected( b )
  34.                     return
  35.                 end
  36.             end
  37.         end
  38.     end
  39. end
  40.  
  41. function AH.Detected( hack )       
  42.     net.Start( "AH.Detected" )
  43.     net.WriteString( hack )
  44.     net.SendToServer()
  45. end
  46.  
  47. net.Receive( "AH.Notify", function(len)
  48.     local t = net.ReadString()
  49.     Chat_AddText( Color( 255, 0, 0 ), "[AntiHack] ", Color( 255, 255, 255 ),  t )
  50. end )
Advertisement
Add Comment
Please, Sign In to add comment