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

New mapcycle on different days


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Roundcat
Senior Member
Join Date: Feb 2012
Old 09-27-2013 , 11:36   New mapcycle on different days
Reply With Quote #1

I'd like to run a different sequence of maps on different days; for eaxmple:

Orange maps on mondays
Areana maps on Fridays etc...

Anyone know how I do it?

NB- meant to put this in the sourcemod thread - sorry.
__________________
I know not my ar*e from its elbow.

Last edited by Roundcat; 09-27-2013 at 11:37. Reason: Wrong thread...
Roundcat is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 09-27-2013 , 20:07   Re: New mapcycle on different days
Reply With Quote #2

hmmm
> Compiler
PHP Code:
public OnMapStart()
{
    new 
String:buffer[20];
    
FormatTime(buffersizeof(buffer), "%A.txt"); // Monday.txt, Tuesday.txt etc. etc.

    
static String:current[20];
    if(!
StrEqual(currentbufferfalse))
    {    
        if(
FileExists(buffer))
        {
            
ServerCommand("mapcyclefile %s"buffer);
            
LogMessage("SM plugin changed server convar = mapcyclefile %s"buffer);
            
Format(currentsizeof(current), "%s"buffer);
        }
    }

Then do mapcycle files
...tf/Monday.txt
...tf/Tuesday.txt
...tf/Wednesday.txt
...tf/Thursday.txt
...tf/Friday.txt
...tf/Saturday.txt
...tf/Sunday.txt



To check and test!
You need change current map to next map
nextmap
sm_map map_name

This how listmaps cmd show rigth map cycle list, it get updated.
__________________
Do not Private Message @me

Last edited by Bacardi; 09-28-2013 at 06:49.
Bacardi is offline
Roundcat
Senior Member
Join Date: Feb 2012
Old 10-12-2013 , 14:55   Re: New mapcycle on different days
Reply With Quote #3

Thank you for this - Ill try it now.
__________________
I know not my ar*e from its elbow.
Roundcat 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 11:21.


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