Raised This Month: $32 Target: $400
 8% 

Daily Changer (JustinHoMi & JGHG)


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Server Management       
Burnzy
Veteran Member
Join Date: Apr 2004
Old 07-17-2004 , 16:28   Daily Changer (JustinHoMi & JGHG)
Reply With Quote #1

This plugin was originally made by JustinHoMi for amx

Just has specific maps for certain days

Code:
/************************************* * Daily Mapcycle *  by JustinHoMi ************************************** * Ported by Burnzy *  Visit <a href="http://www.burnsdesign.org" target="_blank" rel="nofollow noopener">www.burnsdesign.org</a> ************************************** * * WARNING!!!! * =========== *   <font size="6"><font color="red">YOU MUST DISABLE NEXTMAP.AMX FOR THIS TO WORK!</font></font> * * * Allows you to specify a different map * rotation for every day. Mapcycles.ini should * be placed in addons/amxx/custom/daily_mapcycles * And for daily_cfgs to be placed into * addons/amxx/custom/daily_cfgs * The cfgs should be started with the * week days first three letters in the * name. * * REMEMBER!: * ========== *  -the files in the daily_mapcycles folder should be .ini *  -the files in the daily_cfgs folder should be .cfg * * Examples: * ========= *  Sun.cfg *  Wed.cfg *  Fri.cfg * *   (Sun,Mon,Tue,Wed,Thu,Fri,Sat).cfg *   (Sun,Mon,Tue,Wed,Thu,Fri,Sat).ini * * In the cfg's, u just put what cvars u want to apply for that day * In the ini's, u just put the maps u want to be rotated though on that day *    Example: *       de_dust *       de_aztec_cz *       cs_assault_cz * (u dont need .bsp) * * Changelog: *  v1.2, Make it .ini for map stuff *  v1.1, Made it so that there is *  v1.0, Initial Release *************************************/ #include <amxmodx> #include <amxmisc>
Attached Files
File Type: sma Get Plugin or Get Source (daily_changer.sma - 1455 views - 1.7 KB)
__________________
Burnzy is offline
Send a message via AIM to Burnzy
ronin
Member
Join Date: Jul 2004
Old 07-18-2004 , 22:17  
Reply With Quote #2

I don't know if this is the right place but could this plugin also be perverted like so:

Quote:
server_cmd("mapchangecfgfile %s.cfg",today)
to lauch daily config files rather than a mapcycle?

So you could effectively have 2 plugins one for config files and one for mapcycles that change daily.

Usefull for like WarIII Wednesdays and FF Friday's
ronin is offline
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 07-19-2004 , 03:24  
Reply With Quote #3

Try this.

Updated to not only use get_customdir (instead of hardcoding paths), but also stores mapchangecfgfiles in addons/amxx/daily_cfgs/

If that is what you asked for? Then I guess Burnzy could merge this into top post...
Johnny got his gun is offline
lobstah
Member
Join Date: May 2004
Location: Portland, Maine, USA
Old 07-19-2004 , 04:40  
Reply With Quote #4

does this work with nextmap enabled? it doesnt for me

:=O
lobstah is offline
Send a message via MSN to lobstah
ronin
Member
Join Date: Jul 2004
Old 07-19-2004 , 12:57  
Reply With Quote #5

wow thanks
ronin is offline
ronin
Member
Join Date: Jul 2004
Old 07-19-2004 , 16:03  
Reply With Quote #6

Nope somein is still kinda fubar here. The server cfg loads but the mapcycle will not

Quote:
WARNING: Couldn't find a valid map or the file doesn't exist (file "addons/amxx/custom/daily_mapcyc")
in the sma it is daily_mapcycles

I have tried both directory names and have sun.cfg-sat.cfg but
ronin is offline
ronin
Member
Join Date: Jul 2004
Old 07-19-2004 , 16:15  
Reply With Quote #7

Quote:
Originally Posted by lobstah
does this work with nextmap enabled? it doesnt for me

:=O
It doesn't work cause its not actually loading the mapchangefile

Unless of course I'm a complete idiot, which is possible
ronin is offline
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 07-19-2004 , 17:17  
Reply With Quote #8

Works for me. All this does is change the cvars when a map loads:
mapcyclefile -> consists of maps
mapchangecfgfile -> is the default cfg file that server runs between (or after? I don't remember) every map change.

Valid paths to files:
  • addons/amxx/custom/daily_mapcycles/Mon.cfg
    addons/amxx/custom/daily_mapcycles/Tue.cfg
    addons/amxx/custom/daily_mapcycles/Wed.cfg
    addons/amxx/custom/daily_mapcycles/Thu.cfg
    ... and so on

    addons/amxx/custom/daily_cfgs/Mon.cfg
    .. and so on

The days start with big case, because the function that finds out the day of week does it that way. Might be an issue for Linux

Actually now that I think of it the mapcycles part is redundant because you could just set that part in today's cfg file that daily_cfgs runs for you.
Johnny got his gun is offline
Burnzy
Veteran Member
Join Date: Apr 2004
Old 07-19-2004 , 18:03  
Reply With Quote #9

thank u johnny, i would of done this myself but i was suspended... sry all. Ill put that update up now
__________________
Burnzy is offline
Send a message via AIM to Burnzy
ronin
Member
Join Date: Jul 2004
Old 07-19-2004 , 20:23  
Reply With Quote #10

Nope I still show this in HLSW after map change:

WARNING: Couldn't find a valid map or the file doesn't exist (file "addons/amxx/custom/daily_mapcyc")

nextmap always shows the same as the current map

If I run mapcyclefile i get:

"mapcyclefile" is "addons/amxx/custom/daily_mapcycles/Mon.cfg"

Which is correct, the file exists with a uppercase M.

Could anything else interfere (Its a Win2K box, not linux) ? The whole odd part is that the server cfgs work great, its just the map cycle that won't.
ronin 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 21:43.


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