Raised This Month: $32 Target: $400
 8% 

[l4d] Log players name, IP and SteamID


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Danny_l4d
Senior Member
Join Date: Feb 2010
Old 02-22-2011 , 16:32   [l4d] Log players name, IP and SteamID
Reply With Quote #1

Hello all,

I am looking fo a plugin that logs the players IP, steamid and name.
I have been looking for a while.

found this:

http://forums.alliedmods.net/showthread.php?p=822802

https://forums.alliedmods.net/showthread.php?t=105155

and some more that I can't find anymore :/
also find a lot .amx plugins that have this but no .smx files

Only needed a plugin that logs these when a player connects. doesn't have to be in chat (chatspam) just logging.

Can someone help?

Danny
__________________
Danny_l4d is offline
honorcode23
BANNED
Join Date: Mar 2010
Location: Chile
Old 02-23-2011 , 09:18   Re: [l4d] Log players name, IP and SteamID
Reply With Quote #2

I made this for you, tell me if it works .

There are two convars:

l4d_steamid_log_enabled (0/1): Log or not.
l4d_steamid_log_filename: File name where the stuff is logged to. Example with the default value: steamlog_20110223.txt
Attached Files
File Type: sp Get Plugin or Get Source (l4d_steamid_log.sp - 440 views - 1.2 KB)
honorcode23 is offline
Danny_l4d
Senior Member
Join Date: Feb 2010
Old 02-24-2011 , 13:35   Re: [l4d] Log players name, IP and SteamID
Reply With Quote #3

its not working doesn't log, it loads the plugin but when I try to enable the "l4d_steamid_log_enabled" in console its unable to find it :/
__________________
Danny_l4d is offline
Visual77
Veteran Member
Join Date: Jan 2009
Old 02-24-2011 , 14:43   Re: [l4d] Log players name, IP and SteamID
Reply With Quote #4

Quote:
Originally Posted by Danny_l4d View Post
its not working doesn't log, it loads the plugin but when I try to enable the "l4d_steamid_log_enabled" in console its unable to find it :/
Probably, because of a minor scripting error were no such thing as OnPluginLoad() is being used. Change it to OnPluginStart()?
Visual77 is offline
Danny_l4d
Senior Member
Join Date: Feb 2010
Old 02-24-2011 , 14:53   Re: [l4d] Log players name, IP and SteamID
Reply With Quote #5

it works but it is also loggin bots, don't think thats the idea
__________________
Danny_l4d is offline
Leonardo
Veteran Member
Join Date: Feb 2010
Location: 90's
Old 02-24-2011 , 15:07   Re: [l4d] Log players name, IP and SteamID
Reply With Quote #6

edit plugin:
PHP Code:
public OnClientPostAdminCheck(client)
{
    
decl String:SteamID[256], String:IP[16]; 
to
PHP Code:
public OnClientPostAdminCheck(client)
{
    if(
IsFakeClient(client)) return;
    
decl String:SteamID[256], String:IP[16]; 
__________________
Leonardo is offline
Danny_l4d
Senior Member
Join Date: Feb 2010
Old 02-24-2011 , 20:29   Re: [l4d] Log players name, IP and SteamID
Reply With Quote #7

Cool Thx, works perfect
__________________
Danny_l4d 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 18:07.


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