Maybe
[ANY] Full Cronjob Plugin [Execute commands on time intervals / game events]
PHP Code:
// * * * * * * <typ> <command>
// - - - - - - - -
// ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦
// ¦ ¦ ¦ ¦ ¦ ¦ ¦ +-- The command to execute
// ¦ ¦ ¦ ¦ ¦ ¦ +-------- Available types are: console (execute server command), system (execute system command with system2 extension), player (execute on player console)
// ¦ ¦ ¦ ¦ ¦ +---------- Weekday (0-7, Sunday is 0 or 7)
// ¦ ¦ ¦ ¦ +------------ Month (1-12)
// ¦ ¦ ¦ +-------------- Day (1-31)
// ¦ ¦ +---------------- Hour (0-23)
// ¦ +------------------ Minute (0-59)
// +-------------------- Seconds (0-59) - Optional, zero if not given
//
// Allowed syntax:
// * = All, wildcard
// */x = Every x min/hour/day/month/weekday
// x-y = From x to y
// x,y,z = On x, y and z
//
// Examples:
//
// Loads a plugin on every 15. of the month and unloads it on the 16. again
// 0 0 15 * * console sm plugins load myplugin
// 0 0 16 * * console sm plugins unload myplugin
//
// Makes a backup of the server every three hours
// * */3 * * * system tar zcvf backup.tar.gz "/home/user/server"
//
// Every player say: Why am i writing? At 15.20, 15.40, 16.20, 16.40, 17.20, 17.40, 20.20 and 20.40
// 20,40 15-17,20 * * player say "Why am i writing ?"
//
// More examples here: http://www.thesitewizard.com/general/set-cron-job.shtml
//
// OR:
//
// @<special> <typ> <command>
// - - -
// ¦ ¦ ¦
// ¦ ¦ +-- The command to execute.
// ¦ +-------- Available types are: console (execute server command), system (execute system command with system2 extension), player (execute on player console)
// +------------------- The special time to execute the command at. Has to start with a @ following the special
//
// Allowed specials: plugin_start, plugin_end, map_start, map_end and every event available in the current game ( see https://wiki.alliedmods.net/Game_Events_(Source) )!
//
// So for example this is valid:
// @player_death player say "Oh! Someone died!"
//
// Just write your Cronjobs below this Line!
// set default mapgroup when plugin load
@plugin_start console "mapgroup mapgooup_1"
// set mapgroup on each weekday, at every 5th minute past hour 8
*/5 08 * * 0 console "mapgroup mapgooup_1"
*/5 08 * * 1 console "mapgroup mapgooup_2"
*/5 08 * * 2 console "mapgroup mapgooup_3"
*/5 08 * * 3 console "mapgroup mapgooup_1"
*/5 08 * * 4 console "mapgroup mapgooup_2"
*/5 08 * * 5 console "mapgroup mapgooup_3"
*/5 08 * * 6 console "mapgroup mapgooup_1"
- Make sure you not have "mapgroup", "host_workshop_collection" or "host_workshop_map" in
server.cfg, gamemode_*_server.cfg file
Plugin would use server console every 5 minute on 8:00
It execute different mapgroup list on each week day ( 0 - 6 )
If server reboot after 8:00, between 9:00 - 07:00, it will load only default mapgroup on line @plugin_start
__________________