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

[REQ] sm_maphistory


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
yam90
Member
Join Date: Jan 2007
Old 03-07-2008 , 04:07   [REQ] sm_maphistory
Reply With Quote #1

The same like:
ma_maphistory. Shows up to the last 20 maps played in sequence
yam90 is offline
Gweedo
Member
Join Date: Aug 2007
Old 03-07-2008 , 10:19   Re: [REQ] sm_maphistory
Reply With Quote #2

I have a plugin that I made for this that I'll go ahead and post later today.
Gweedo is offline
Gweedo
Member
Join Date: Aug 2007
Old 03-08-2008 , 08:59   Re: [REQ] sm_maphistory
Reply With Quote #3

sm_maphistory

Shows the last 20 maps played. Let me know of any problems.
Attached Files
File Type: zip maphistory.zip (3.0 KB, 182 views)
Gweedo is offline
yam90
Member
Join Date: Jan 2007
Old 03-08-2008 , 13:31   Re: [REQ] sm_maphistory
Reply With Quote #4

Thank you. It's working
yam90 is offline
Simmy
Member
Join Date: Apr 2011
Old 04-25-2011 , 09:39   Re: [REQ] sm_maphistory
Reply With Quote #5

This is great, thank you, hope it still works, that is :p
Simmy is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 04-25-2011 , 09:54   Re: [REQ] sm_maphistory
Reply With Quote #6

You know, SM have included this already, nextmap.smx ?
Admin command, admins with flag "g" (changemap) can use this.
It print player console list maps what have played
Code:
"sm_maphistory"
 - Shows the most recent maps played
And players can see list of server maps what are in mapcycle.
console command
Code:
listmaps
Bacardi is offline
Simmy
Member
Join Date: Apr 2011
Old 04-25-2011 , 13:13   Re: [REQ] sm_maphistory
Reply With Quote #7

Yeah I realise that, but I want people to be able to use it without having the 'g' flag.
Simmy is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 04-25-2011 , 14:47   Re: [REQ] sm_maphistory
Reply With Quote #8

Quote:
Originally Posted by Simmy View Post
Yeah I realise that, but I want people to be able to use it without having the 'g' flag.
Have you heard how override commands ??
http://wiki.alliedmods.net/Overridin...28SourceMod%29

...addons/sourcemod/configs/admin_overrides.cfg
Code:
Overrides
{
    /**
     * By default, commands are registered with three pieces of information:
     * 1)Command Name         (for example, "csdm_enable")
     * 2)Command Group Name    (for example, "CSDM")
     * 3)Command Level        (for example, "changemap")
     *
     * You can override the default flags assigned to individual commands or command groups in this way.
     * To override a group, use the "@" character before the name.  Example:
     * Examples:
     *        "@CSDM"            "b"                // Override the CSDM group to 'b' flag
     *         "csdm_enable"    "bgi"            // Override the csdm_enable command to 'bgi' flags
     *
     * Note that for overrides, order is important.  In the above example, csdm_enable overwrites
     * any setting that csdm_enable previously had.
     *
     * You can make a command completely public by using an empty flag string.
     */
    "sm_maphistory"        ""
}
*edit
Too bad that zipped plugin in post #3 use admin command what have flagged to "b" (generic)

*edit edit
When you have both nextmap.smx and maphistory.smx, you get list of past maps douple. You have two exactly same command.

Last edited by Bacardi; 04-25-2011 at 14:51.
Bacardi is offline
Simmy
Member
Join Date: Apr 2011
Old 04-25-2011 , 16:13   Re: [REQ] sm_maphistory
Reply With Quote #9

Yeah, forgot about the overrides thing, doh
Simmy 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 20:49.


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