AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Metamod:Source Plugins (https://forums.alliedmods.net/forumdisplay.php?f=76)
-   -   Last Users Connected (https://forums.alliedmods.net/showthread.php?t=39755)

devicenull 02-26-2006 22:11

Last Users Connected
 
Current version: v0.18

What is it?
Ever had a player come onto your server, and insult you, or cause havoc, then leave before anyone can get a steamid? Or how about the players who tell you the name of someone who was causing problems, but didn't get a steamid. Or griefers that join your server, annoy everyone, then rejoin under a different name, with no one knowing.

Not anymore.
With this plugin, every player who comes onto your server has their steamid logged, along with any name they used on the server. You can then either view the names/steamid's of the last people to disconnect, or you can search for a name/steamid and see everyone who has used that name.

Changes:

v0.16->v0.17
  • Old databases will need to be deleted when upgrading to this version
  • All queries are now threaded when a player joins.. this means no more lag spikes when a player connects, regardless of database size.
  • Added lc_keepnames
For older changes, click here

How do I use it?
You need to download and Install SourceMM. Next, set it up like a normal plugin.

Commands:
Server:
lc_aka 1|0 - Turns AKA mode on/off (Will show a players previous names in chat when they connect)
lc_delay X - This is the minimum time between using any commands, in seconds, set to 0 to remove.
lc_showtime 0|1 - Show timestamps when displaying results?
lc_maxnames X - Only display X names for each steamid. This effects both AKA and console commands.
lc_keepnames X (default 168 (one week)) - Number of hours to keep names for, set to 0 to keep forever. When a user has no more names associated with them, they will be dropped from the database.

Client:
last X - Will show you the last X users to disconnect. If X is missing, it defaults to 25.
finduser <string> - Search for any user names containing <string>, <string> must be three or more characters.

Where can I get it?

[b]NOTE: When upgrading to 0.18, you must delete this file: /addons/last_connected/data/database.sq
here (win32 and linux)
here (source code)

Opossum 02-26-2006 22:46

Yes, that's a really nice idea. This could be very, very usefull. I'll give it a try within the next days.

Rebell 02-28-2006 08:07

TNX :D

[FON]BlackHole 02-28-2006 08:13

You mean I can get out of the habit of pressing my bound "status" key every 5 minutes now? OMG!

Loaded it up on the server we'll see how it goes. =)

Rebell 02-28-2006 08:35

Works good - but would be nice to see it not only in the console !

With "last" in the chat and a ingame list would be nice ( like mani-menu and others does )

And all the fakeclients by L.Duke are listed, too. Can this be filtered ?

good work so far - cya :wink:

L. Duke 02-28-2006 10:10

Best way to filter them would be to not include players whose SteamID=="BOT"

devicenull 02-28-2006 13:55

Quote:

Originally Posted by L. Duke
Best way to filter them would be to not include players whose SteamID=="BOT"

I'll do this when I get home from work, and add support for doing it in chat. Not sure about menu's, I'll have to take a look.

Rebell 02-28-2006 18:22

Sounds good , thanks :D

And would it be to hard to make a readeble .txt-file of it ?!?
I mean to make a little php script to show the last XX players on server would be cool.


cya :roll:

devicenull 02-28-2006 18:57

Quote:

Originally Posted by Rebell
Sounds good , thanks :D

And would it be to hard to make a readeble .txt-file of it ?!?
I mean to make a little php script to show the last XX players on server would be cool.


cya :roll:

PHP can use the sqlite database... http://us2.php.net/sqlite

awuh0 02-28-2006 22:27

This is a really sweet plugin, would you mind adding a cvar for how many users to track at a time?


All times are GMT -4. The time now is 01:20.

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