AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   Last Players disconnect (https://forums.alliedmods.net/showthread.php?t=334542)

MasterWindowS 10-02-2021 17:22

Last Players disconnect
 
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.

mrmiki 10-04-2021 10:55

Re: Last Players disconnect
 
search bandisconnected plugin

mrmiki 10-04-2021 10:56

Re: Last Players disconnect
 
Quote:

Originally Posted by mrmiki (Post 2759596)
search bandisconnected plugin



https://forums.alliedmods.net/showthread.php?p=1273254

Bacardi 10-04-2021 16:47

Re: Last Players disconnect
 
1 Attachment(s)
...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.


All times are GMT -4. The time now is 03:22.

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