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

Last Players disconnect


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
MasterWindowS
BANNED
Join Date: May 2020
Location: Chile
Old 10-02-2021 , 17:22   Last Players disconnect
Reply With Quote #1

Hi, I am looking for a plugin that is to see the names and steam ids of the last 10 offline players.

for example:

!lastplayers. and that in console comes out the list of the last 10 disconnected players with their names and steamid.
MasterWindowS is offline
mrmiki
Junior Member
Join Date: Mar 2021
Old 10-04-2021 , 10:55   Re: Last Players disconnect
Reply With Quote #2

search bandisconnected plugin
mrmiki is offline
mrmiki
Junior Member
Join Date: Mar 2021
Old 10-04-2021 , 10:56   Re: Last Players disconnect
Reply With Quote #3

Quote:
Originally Posted by mrmiki View Post
search bandisconnected plugin


https://forums.alliedmods.net/showthread.php?p=1273254
mrmiki is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 10-04-2021 , 16:47   Re: Last Players disconnect
Reply With Quote #4

...I was practicing sql things.

So here is my version. Not so perfect tough.
Files included in zip



Install:
- drag and drop files in your server.
- if everything went right, you have example file in ...addons/sourcemod/configs/databases.example.cfg
Open file with text editor and look lastplayers { } configure and add it in your own file -> databases.cfg
- reboot server
- Join server or use server console, type command sm_lastplayers
You should see something like this.
Code:
sm_lastplayers

  | rowid | name | steamid | disconnected |

 | 1 | 'Bacardi | [U:1:28327177] | 2021-10-04 23:04:01 |
 | 2 | Plugin made by Bacardi | 69 | 2021-10-01 00:00:00 |
Plugin features:
- Every time when plugin is loaded, it delete all, over 2 months old records and do "vacuum" to short database size.
To clarify more, it keep records past two - three whole months. Date start first day of month.
- This plugin works with SQLite, not MySQL.
- Works with in one server only. Database locate in ...addons\sourcemod\data\sqlite

Command is public, not restricted for admins only.
You can restrict command sm_lastplayers for admins from admin_overrides.cfg. Not need edit and compile plugin.
Attached Files
File Type: zip sqlite_lastplayers.zip (9.4 KB, 41 views)
__________________
Do not Private Message @me
Bacardi 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 22:25.


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