View Single Post
AlliedModders Donor
Join Date: Feb 2013
Old 08-17-2014 , 10:29   Re: [ANY] Log Connections
Reply With Quote #30

I've made this basic plugin for my own server that just logs connections/disconnections (name, steamid, IP) and map changes in one file named Connections.log. This does not have the double logging bug.

What the log entries look like:
L 08/16/2014 - 14:53:18: -------- Mapchange to de_nuke --------
L 08/16/2014 - 14:53:18: Player 1<4><STEAM_1:0:********><><85.***.**.***> connected.
L 08/16/2014 - 15:01:33: Player 2<14><STEAM_1:0:********><><5.***.***.**> connected.
L 08/16/2014 - 15:01:59: Player 2<14><STEAM_1:0:********><><5.***.***.**> disconnected.
L 08/16/2014 - 15:15:53: Player 1<4><STEAM_1:0:********><><85.***.**.***> disconnected.

Source (old version):
Attached Files
File Type: sp Get Plugin or Get Source (connectionlogger.sp - 606 views - 1.1 KB)

Last edited by allienaded; 10-08-2014 at 21:37. Reason: Updated plugin to work more reliably with Sourcemod 1.6.x
allienaded is offline