Request Last Maps Plugin [CS 1.6]
Hey, I would love if someone can create a plugin that'll store maps played in a log file by date.
An admin can then use a command /lastmaps to get last maps played shown in chat. A cvar to set how many maps to show would also be nice. Thanks! |
Re: Request Last Maps Plugin [CS 1.6]
Done. The list is shown to everyone when an admin types /lastmaps in chat.
I'll probably only do 1 or 2 more revisions, if needed. CVars amx_lastmaps_maxresults 10 - Total results showed ( capped at 20 ) amx_lastmaps_style <0/1> 1 - Table (max recommended: 4) / 1 - List (default) Command say /lastmaps - ADMIN_IMMUNITY flag required. Deleted, will rework and reload. |
Re: Request Last Maps Plugin [CS 1.6]
Quote:
Code:
[AMXX] Last 10 Maps:and with style 0 Code:
|
Re: Request Last Maps Plugin [CS 1.6]
I may have to rewrite the whole script. This method just parses the logs from 'addons\amxmodx\logs'.
Could you paste a sample of a log from that folder? Mine looks like this: Quote:
|
Re: Request Last Maps Plugin [CS 1.6]
Quote:
Thanks for the reply.. After reading it got me thinking I have lots of logs (from several years) which may have conflicted with the plugin, I have renamed the existing folder and restarted the server. I'll test it again and get back to you. |
Re: Request Last Maps Plugin [CS 1.6]
Here's the changes in log:
Code:
L 04/09/2023 - 17:58:48: -------- Mapchange to de_dust2 -------- Code:
[AMXX] Last 10 Maps:with style 0: Code:
[AMXX] Last 10 Maps: |
Re: Request Last Maps Plugin [CS 1.6]
I have no time to do this, but to help BARRY. or anyone else out:
PHP Code:
|
Re: Request Last Maps Plugin [CS 1.6]
I appreciate the help from both of you. I found this plugin https://forums.alliedmods.net/showpo...38&postcount=2 by Exolent so I think I'll be using it
|
| All times are GMT -4. The time now is 10:37. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.