Raised This Month: $ Target: $400
 0% 

[REQ] Client steam ID & IP logger


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
midnight9
Senior Member
Join Date: Nov 2012
Old 01-15-2015 , 10:58   [REQ] Client steam ID & IP logger
Reply With Quote #1

Hello, Im looking for plugin that will log steam ID, IP and Name to file of every client connecting to my servers. I did some searching and i found this:
https://forums.alliedmods.net/showthread.php?t=83330

It works ok, but the only problem with this plugin is that it spams the logs with data of the same client every few minutes or so (probably on map changes). So its a bit annoying that it floods the logfile with data of same client.
So is there anyone who would be willing write similar plugin, or maybe rewrite this one ( since the author hasnt been online since like 2013) so it does only logs once each client, unless the client use different name/steam id/ip, so then it would log this client again. Im not sure if this is even possible?

Im needing this for L4D2 servers, but im sure there would be more people interesting in this since it would be very helpfull, even for tracking some kids trying DOS or such.

Regards
midnight9 is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 01-15-2015 , 16:00   Re: [REQ] Client steam ID & IP logger
Reply With Quote #2

ok... here test plugin.

This actually record players in database and refresh log file on map change.
This can use either SQLite or MySql connection.
Log file you find from server root folder, called "log_players.txt"

What you need to do is add plugin database setting into
sourcemod/databases.cfg file
databases.cfg


you can compile plugin with this http://www.sourcemod.net/compiler.php
plugin source code



I haven't test plugin in long period so beware. And this use temporary database connection, automatically close after 2 minutes if there not happen new player connection or mapchange.


*edit
log file output look like this
Code:
 steamid, name, ip_port, timestamp
 STEAM_0:1:14163588, Bacard, 62.106.xx.xx:27006, 01/15/2015 - 22:47:03
 STEAM_0:1:14163588, Bacardi, 62.106.xx.xx:27006, 01/15/2015 - 22:47:37
__________________
Do not Private Message @me

Last edited by Bacardi; 01-15-2015 at 16:02.
Bacardi is offline
midnight9
Senior Member
Join Date: Nov 2012
Old 01-16-2015 , 13:18   Re: [REQ] Client steam ID & IP logger
Reply With Quote #3

Wow, i didnt expect to get anything that fast! Thanks alot, i will give it a try, but it sounds really good. Thanks again.
Regards
midnight9 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:13.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode