Raised This Month: $12 Target: $400
 3% 

Store every visitor in database


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mata
Junior Member
Join Date: Jun 2008
Old 08-11-2008 , 17:18   Store every visitor in database
Reply With Quote #1

Does it excist or....
Is there any chance of getting a plugin that can store to database every user that enters a server? Maybe with steamID, last connected etc. and support for several servers. This is to keep track of how many users that has visited your servers and to maybe track cheaters thats been reported to you.
Another good feature is if it could be browsable in HSFighter's webadmin.

A plugin like this would help me alot when running several high traffic servers.

Thanks.
mata is offline
curlefry
Senior Member
Join Date: Jun 2008
Location: Georgia, USA
Old 08-13-2008 , 19:01   Re: Store every visitor in database
Reply With Quote #2

Connect/Disconnect Announcer

Use that plugin, and turn logging on.
__________________
curlefry is offline
Send a message via MSN to curlefry
mata
Junior Member
Join Date: Jun 2008
Old 08-14-2008 , 08:40   Re: Store every visitor in database
Reply With Quote #3

Yes, something like that, but would like it to be stored to a database because this is for several servers, having 10-15 log files to view will become a mess i think.
mata is offline
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 08-14-2008 , 15:53   Re: Store every visitor in database
Reply With Quote #4

Here's a plugin I was working on a while back that should do just what you want. Look at the top of the source file to see what each table logs.

To use it, just make sure your database is set up properly, and the plugin will automatically create the tables, and start logging player information for you.
Attached Files
File Type: sp Get Plugin or Get Source (playerrecords.sp - 316 views - 6.0 KB)
bl4nk is offline
mata
Junior Member
Join Date: Jun 2008
Old 08-14-2008 , 15:58   Re: Store every visitor in database
Reply With Quote #5

Thanks man, i'll test it

Edit: This works like a charm! Thanks again

Last edited by mata; 08-14-2008 at 16:23.
mata is offline
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 08-14-2008 , 17:21   Re: Store every visitor in database
Reply With Quote #6

Here's an updated version that will log player IPs in a new, separate table. Just put the new version on the server and reload the plugin (manually, by changing the map, or by restarting the server), and it should create the new table for you.
Attached Files
File Type: sp Get Plugin or Get Source (playerrecords.sp - 322 views - 6.7 KB)

Last edited by bl4nk; 08-14-2008 at 17:28.
bl4nk is offline
mata
Junior Member
Join Date: Jun 2008
Old 08-15-2008 , 14:39   Re: Store every visitor in database
Reply With Quote #7

great! i have updated Is it possible to add what server they joined last, servername or server IP address?
And it now logs the time of last connect right? is it possible to log the time they disconnected too?
mata is offline
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 08-15-2008 , 15:03   Re: Store every visitor in database
Reply With Quote #8

It updates the connection time whenever they connect or disconnect.
bl4nk is offline
mata
Junior Member
Join Date: Jun 2008
Old 08-15-2008 , 15:05   Re: Store every visitor in database
Reply With Quote #9

ok. What about the server IP or name? Is that possible to add?
mata is offline
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 08-15-2008 , 15:06   Re: Store every visitor in database
Reply With Quote #10

It is, but I'm a bit busy at the moment to add it. The IP table stuff was just an easy copy/paste and changing of like three-four lines.
bl4nk 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 03:01.


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