View Single Post
Author Message
Player 1
Member
Join Date: Apr 2012
Old 11-28-2012 , 19:32   [ANY] Log Connections
Reply With Quote #1

Description:
This plugin logs players' connect and disconnect times along with their Name, SteamID, and IP Address to a text file at /sourcemod/logs/connections/ seperate from the server logs. Players will only be logged when they fully connect and disconnect from the server. (as apposed to every map change in the generic server logs)

This could be useful to go back and ban a hacker / cheater without having to dig through the messy server logs.

A new log file will be created every day. The information on each line will be ordered as follows:

<Time> - <Name> <SteamID> <IP> Connected from <Country>
<Time> - <Name> <SteamID> <IP> Disconnected after <#> minutes. <Reason>

Here is an example log from 28_Nov_2012.txt
Code:
16:58:34 - ===== Map change to metro =====

17:02:41 - <Xander> <STEAM_1:0:XXXX> <108.XXX.XX.XXX> CONNECTED from <United States>
17:04:35 - <Xander> <STEAM_1:0:XXXX> <108.XXX.XX.XXX> DISCONNECTED after 3 minutes. <Kicked by administrator>
17:05:07 - <Xander> <STEAM_1:0:XXXX> <108.XXX.XX.XXX> CONNECTED from <United States>

17:05:31 - ===== Map change to silo =====

17:06:47 - <Xander> <STEAM_1:0:XXXX> <108.XXX.XX.XXX> DISCONNECTED after 2 minutes. <Xander timed out>
Attached Files
File Type: sp Get Plugin or Get Source (logconnections.sp - 6299 views - 4.0 KB)

Last edited by Player 1; 02-02-2013 at 11:47. Reason: ready for review
Player 1 is offline