[ANY] Full Cronjob Plugin [Execute commands on time intervals / game events]
8 Attachment(s)
Description:
This plugin allows you to create cronjobs. With cronjobs you can execute commands on time intervals or events / game events. For time intervals the following intervals are possible: seconds, minutes, hours, days, months, day of week For events the following events are possible: plugin_start, plugin_end, map_start, map_end and every event available in the current game (see here) The syntax is similarly to the original cronjob syntax of Unix and just as easy to create! A cronjob can execute one of three different command types:
Note: Cronjobs will not be executed if your server is hibernating How to add cronjobs Taken from "cfg/cronjobs.txt": Code:
// * * * * * * <typ> <command> How to install / use Just download the cronjobs.zip, extract it and put the cfg and addons folder to the gamdir of your server. Add your cronjobs to the cfg/cronjobs.txt and enable / disable logging in the cfg/sourcemod/plugin.cronjobs.cfg. Restart your server, change your map or load it with sm plugins load cronjobs. To use system commands you need the System2 extension! To enable auto updating you need the Updater plugin! You can reload the cronjobs from the cronjobs.txt file with the cronjobs_reload server command. Changelog
Have fun and report any error! |
Re: [ANY] Full Cronjob Plugin [Execute commands on time intervals]
Nice one
|
Re: [ANY] Full Cronjob Plugin [Execute commands on time intervals]
Update Code:
1.1 |
Re: [ANY] Full Cronjob Plugin [Execute commands on time intervals]
Thanks! I've been using this plugin in place of an older one and it's working perfectly. Appreciate the work.
|
Re: [ANY] Full Cronjob Plugin [Execute commands on time intervals]
What's the difference between your plugin and the Server Crontab plugin?
http://forums.alliedmods.net/showthread.php?t=60046 |
Re: [ANY] Full Cronjob Plugin [Execute commands on time intervals]
1. The Syntax is similarly to the original cronjob syntax of Unix
2. you have More options how to set up your cronjob (20,40 15-17,20 */2 * ). The crontab plugin only have for each option one number 3. You can execute console, player and system commands |
Re: [ANY] Full Cronjob Plugin [Execute commands on time intervals]
Hi nice plugin did it support map events and map timer? If not could you add this feature?
Thx |
Re: [ANY] Full Cronjob Plugin [Execute commands on time intervals]
good work!
working on my server :D |
Re: [ANY] Full Cronjob Plugin [Execute commands on time intervals]
Is there a way for me to tell the script to change the name of my mapcycle.txt every day at 5pm?
|
Re: [ANY] Full Cronjob Plugin [Execute commands on time intervals]
Yes this should be possible with the System 2 Exension
Add as a cronjob: 0 17 * * * system mv <gamedir>/mapcycle.txt <gamedir>/<newname>.txt Replace <gamedir> with your gamedir, like cstrike, or tf or dod. Replace <newname> with the name to replace to. Give me a feedback whether it's working. |
All times are GMT -4. The time now is 18:57. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.