Raised This Month: $89 Target: $400
 22% 

ID3 logging on player connect [CS:S]


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Author Message
The Solid lad
Member
Join Date: Oct 2018
Old 11-21-2018 , 18:30   ID3 logging on player connect [CS:S]
#1

Is there a plugin that would create a log file every day, and save all connected players' ID3 tags to a txt file in "cstrike/addons/sourcemod/logs/" along with their names?
Maybe there's a function like this built into SM by default?

I'd like to have a log that looks something like this:
Code:
10/18/2018 - 16:25:02: [id3logger.smx] LOLYOU[U:1:85535XXXX]><> has connected to the server.
10/18/2018 - 17:10:00: [id3logger.smx] LOLYOU[U:1:85535XXXX]><> has disconnected from the server.
I first thought about asking for help on how to make cannounce display ID3 tags instead of old STEAM IDs in the chat, and print them to the console as well...but later figured that a log file like this would be a better solution.
I want to retroactively ban cheaters (copy their id3's into banned_user.cfg) who have been spotted by regular players on the server, but disconnected before an admin could be there and ban them.

Thanks for all replies in advance!
The Solid lad is offline
micazoid
Veteran Member
Join Date: Oct 2010
Location: Munich - Germany
Old 11-22-2018 , 00:21   Re: ID3 logging on player connect [CS:S]
#2

Do you have VIPs on your Server?

If so, then give them the ability to warn?
We are using this for it:
https://forums.alliedmods.net/showthread.php?p=1814821

If players are warned they get logged and you can easily ban them. Or you can set this Plugin to do it for you. Another approach would be a report system:
https://forums.alliedmods.net/showthread.php?p=1934474
__________________
micazoid is offline
The Solid lad
Member
Join Date: Oct 2018
Old 11-22-2018 , 07:45   Re: ID3 logging on player connect [CS:S]
#3

Thank you for the suggestions, but I really don't need all of the extra functionality those plugins bring...
What I want is really simple, I just don't know how to code...

I took the logging idea from Afk manager, it's logs look like this:
Code:
L 10/18/2018 - 20:05:36: [afk_manager4.smx] 3xTaSy<34><[U:1:304690XXXX]><> has been moved to spectator because he was AFK.
L 10/18/2018 - 20:11:39: [afk_manager4.smx] Player count for AFK Kick minimum has been reached, feature is now enabled: sm_afk_kick_min_players = 6 Current Players = 6
L 10/18/2018 - 20:11:43: [afk_manager4.smx] AFK 3xTaSy<34><[U:1:304690XXXX]><> has been kicked.
I'd just like to have the same, with connects/disconnects as the events which are being logged.
This is a small server with a relatively small player base so it'd be manageable to sift thru a daily log.
The Solid lad is offline
micazoid
Veteran Member
Join Date: Oct 2010
Location: Munich - Germany
Old 11-22-2018 , 12:12   Re: ID3 logging on player connect [CS:S]
#4

Why do you need ID3? Can't you just convert the steamid with https://steamid.io

and use something like this?

Try to make a request here. It should not be that hard to alter the output of my suggested Plugin
__________________

Last edited by micazoid; 11-22-2018 at 12:13.
micazoid is offline
The Solid lad
Member
Join Date: Oct 2018
Old 11-22-2018 , 15:20   Re: ID3 logging on player connect [CS:S]
#5

Quote:
Originally Posted by micazoid View Post
Why do you need ID3? Can't you just convert the steamid with https://steamid.io

and use something like this?

Try to make a request here. It should not be that hard to alter the output of my suggested Plugin
First off, thanks for all your help.
I can't use converters, because many of these players are running non-steam clients, and as such, converters don't find the account associated with them.
(I allow nonsteam clients to play on the server... otherwise we wouldn't have like half the amount of active players)

So... I did a test with a non-steam guy, and when I banned him with the "sm_ban" command, using his (old style) STEAM ID, which cannounce prints in the chat, it worked.
His ID3 was written into banned_user.cfg.
The problem with this is that it doesn't work when the player you want to ban isn't connected, and even if it would work, it'd require somebody copying the alleged cheater's steam id and sending it to me via steam chat, discord or something.

The plugin you linked "Log Connections" is a godsent. Thank you. I'll make a request right away.
The Solid lad is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 11-22-2018 , 15:27   Re: ID3 logging on player connect [CS:S]
#6

exuse mua ?
Quote:
Originally Posted by The Solid lad View Post
First off, thanks for all your help.
I can't use converters, because many of these players are running non-steam clients, and as such, converters don't find the account associated with them.
(I allow nonsteam clients to play on the server... otherwise we wouldn't have like half the amount of active players)

So... I did a test with a non-steam guy, and when I banned him with the "sm_ban" command, using his (old style) STEAM ID, which cannounce prints in the chat, it worked.
His ID3 was written into banned_user.cfg.
The problem with this is that it doesn't work when the player you want to ban isn't connected, and even if it would work, it'd require somebody copying the alleged cheater's steam id and sending it to me via steam chat, discord or something.

The plugin you linked "Log Connections" is a godsent. Thank you. I'll make a request right away.

Sticky: NO STEAM = NO SUPPORT
YamiKaitou
__________________
Do not Private Message @me

Last edited by Bacardi; 11-22-2018 at 15:28.
Bacardi is offline
sneaK
SourceMod Moderator
Join Date: Feb 2015
Location: USA
Old 11-22-2018 , 22:09   Re: ID3 logging on player connect [CS:S]
#7

We absolutely do not condone, nor support non-steam clients or servers here.
__________________
sneaK is offline
Closed Thread


Thread Tools
Display Modes

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 09:55.


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