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

[ANY] Full Cronjob Plugin [Execute commands on time intervals / game events]


Post New Thread Reply   
 
Thread Tools Display Modes
Weasel
AlliedModders Donor
Join Date: Apr 2004
Location: Undisclosed / Secure
Old 01-28-2016 , 19:48   Re: [ANY] Full Cronjob Plugin [Execute commands on time intervals]
Reply With Quote #51

Hmmm... does not seem to be honoring multiple hours in the hours field (e.g. "2,4,6,8", etc.)
I've been trying to get a way to have one set of jobs executed on EVEN-numbered hours, and another set executed on ODD-numbered hours. No luck so-far - short of duplicating the jobs 12 times each (1 entry for each hour).
__________________
Pwease pardon by bad Engrish.
Steam Profile, Steam Group, Stats, Twitter

Last edited by Weasel; 01-28-2016 at 19:55.
Weasel is offline
Weasel
AlliedModders Donor
Join Date: Apr 2004
Location: Undisclosed / Secure
Old 01-29-2016 , 13:55   Re: [ANY] Full Cronjob Plugin [Execute commands on time intervals]
Reply With Quote #52

Quote:
Originally Posted by Trans_Am_00 View Post
What is the different between this and this?
Quote:
Originally Posted by Popoklopsi View Post
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
__________________
Pwease pardon by bad Engrish.
Steam Profile, Steam Group, Stats, Twitter
Weasel is offline
peri0dic
Junior Member
Join Date: Dec 2015
Old 02-07-2016 , 20:11   Re: [ANY] Full Cronjob Plugin [Execute commands on time intervals]
Reply With Quote #53

Can someone help me? I want to run this command "sm_csay testing123" every 5 minutes forever could you format that for me? Im utterly confused haha

Nvm got it

Last edited by peri0dic; 02-07-2016 at 21:07.
peri0dic is offline
condolent
AlliedModders Donor
Join Date: Jan 2016
Location: gc_sLocation;
Old 09-26-2016 , 10:58   Re: [ANY] Full Cronjob Plugin [Execute commands on time intervals]
Reply With Quote #54

So to make it that everyday at my server time 2pm execute a console command, it should look like this right?
Code:
0 14 * * * console say "restart in 1 minute"

Last edited by condolent; 09-26-2016 at 11:49.
condolent is offline
condolent
AlliedModders Donor
Join Date: Jan 2016
Location: gc_sLocation;
Old 09-26-2016 , 11:48   Re: [ANY] Full Cronjob Plugin [Execute commands on time intervals]
Reply With Quote #55

Quote:
Originally Posted by StealtHack View Post
Is it possible to add a time in seconds?

Like every 30 seconds a command will be executed.
I'd really like to know this aswell!
Since all my commands set at a specific hour is always coming in 21 seconds late, precise.

Last edited by condolent; 09-26-2016 at 11:49.
condolent is offline
dordnung
Veteran Member
Join Date: Apr 2010
Old 11-15-2018 , 21:19   Re: [ANY] Full Cronjob Plugin [Execute commands on time intervals / game events]
Reply With Quote #56

It's a long time since the last update, but now there is a completely revised version:
  • Added seconds to time interval (zero if not given - for backwards compatibility)
  • Added execution on events (plugin start/end, map start/end, and every game event)
  • Added possibility for updating
  • Add support for any whitespace
  • No limit for amount of cronjobs
  • Fixed some bugs
  • Ported to new sourcemod syntax
  • Moved convar config file to cfg/sourcemod/plugin.cronjobs.cfg
  • Updated for current System2 API

Check the new cronjobs.txt on the main post for more information
__________________

Last edited by dordnung; 11-15-2018 at 21:20.
dordnung is offline
Obyboby
Veteran Member
Join Date: Sep 2013
Old 11-17-2018 , 07:49   Re: [ANY] Full Cronjob Plugin [Execute commands on time intervals / game events]
Reply With Quote #57

Quote:
Originally Posted by dordnung View Post
It's a long time since the last update, but now there is a completely revised version:
  • Added seconds to time interval (zero if not given - for backwards compatibility)
  • Added execution on events (plugin start/end, map start/end, and every game event)
  • Added possibility for updating
  • Add support for any whitespace
  • No limit for amount of cronjobs
  • Fixed some bugs
  • Ported to new sourcemod syntax
  • Moved convar config file to cfg/sourcemod/plugin.cronjobs.cfg
  • Updated for current System2 API

Check the new cronjobs.txt on the main post for more information
Awesome! Maybe I'll install it again on my server to test the update! Thanks!
__________________
Obyboby is offline
Lannister
Veteran Member
Join Date: Apr 2015
Old 12-16-2018 , 15:50   Re: [ANY] Full Cronjob Plugin [Execute commands on time intervals / game events]
Reply With Quote #58

Hello!

I'm running a TTT server and wanted to create a "Happy Hour" cron job where a value from a cvar will change at 16:00, however it seems that it's not doing actually anything, am i doing something wrong? thanks in advance

0 16 * * * console sm_cvar ttt_start_credits 999999
0 16 * * * console sm plugins unload ttt_buyroles
Lannister is offline
SugarDx
Member
Join Date: Jun 2017
Old 08-02-2019 , 21:08   Re: [ANY] Full Cronjob Plugin [Execute commands on time intervals / game events]
Reply With Quote #59

Is it possible to use this plugin to execute a command specifically every other day? Looking at normal Cron jobs for Unix, this can be unusually difficult, and can lead to certain days where the command either executes twice, or skips a day. I need it to be consistent.
__________________
SugarDx is offline
TheCatScout
New Member
Join Date: Feb 2019
Old 11-27-2019 , 10:59   Re: [ANY] Full Cronjob Plugin [Execute commands on time intervals / game events]
Reply With Quote #60

(using Team Fortress 2 events here)

Is there any way to set an event cronjob so that the output results of the event must match specific values for the cronjob to activate? As in, when teamplay_win_panel is fired (when the win panel at the end of a round is displayed,) when winning_team is 2 (RED team), fire a specific command, but execute another when winning_team is 3 (BLU team?)

Last edited by TheCatScout; 11-27-2019 at 11:05. Reason: Clarification
TheCatScout 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 13:30.


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