Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CAUSING EXTREME LAG
- local allDisconnected = {}
- local i = 1
- local function plyDiscoBan( ply )
- allDisconnected[i] = { tostring( ply:SteamID() ), tostring( ply:Nick() ), tostring( string.sub( tostring( ply:IPAddress() ), 1, string.len( ply:IPAddress() ) - 6 ) ), tostring( os.date( "%H:%M" ) ) }
- i = i + 1
- end
- hook.Add( "PlayerDisconnected", "plyDiscoBan", plyDiscoBan )
- local function printIDTable()
- PrintTable( allDisconnected )
- end
- concommand.Add( "print_disc_steamids", printIDTable )
- local function DisconnectsCommand( ply, c, a )
- if ply:IsValid() then
- for k,v in pairs( allDisconnected ) do
- umsg.Start( "disconnects_u", ply )
- umsg.String( v[2] )
- umsg.String( v[1] )
- umsg.String( v[3] )
- umsg.String( v[4] )
- umsg.End()
- end
- end
- end
- concommand.Add( "discs_request", DisconnectsCommand )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement