Raised This Month: $ Target: $400
 0% 

Task Scheduler - by JustinHoMi


Post New Thread Reply   
 
Thread Tools Display Modes
rory535
Member
Join Date: Aug 2005
Old 04-11-2008 , 16:29   Re: Task Scheduler - by JustinHoMi
Reply With Quote #131

I have 2 map files, each with only 1 map in them.
I have added this to my amxx.cfg file
Code:
amx_task 01:00 "mapcyclefile mapcycleday.txt" t
amx_task 18:00 "mapcyclefile mapcycle.txt" t
However when I restart my server, nothing happens and it does not execute the correct mapcycle file. Will this only happen exactly at 01:00am and 18:00? What happens if I restart my server at 3.00am, will it know to execute my amx_task that was meant to start at 01:00?
rory535 is offline
DA
Veteran Member
Join Date: Nov 2005
Location: Germany/Münster
Old 04-11-2008 , 17:53   Re: Task Scheduler - by JustinHoMi
Reply With Quote #132

Nope. That the problem. There is a task that only check every minute if the currenttime = starttime. If not then don't start the command....
__________________
DA is offline
rory535
Member
Join Date: Aug 2005
Old 04-12-2008 , 10:05   Re: Task Scheduler - by JustinHoMi
Reply With Quote #133

Is there any way to make this work by simply checking to see if the current time is within the range you specify (01:00-18-00) and if so, execute the task? That seems simple enough.

Last edited by rory535; 04-12-2008 at 10:08.
rory535 is offline
MAUGHOLD
Veteran Member
Join Date: Nov 2004
Location: CA USA
Old 04-12-2008 , 15:29   Re: Task Scheduler - by JustinHoMi
Reply With Quote #134

This plugin has problems. The author hasn't even bothered to fix the bugs.
__________________
{FJ}Justice STEAM_0:0:633975 If anyone needs any help with their server, Just add me to steam friends and I'll help you out.
MAUGHOLD is offline
eXtrim
Junior Member
Join Date: Nov 2007
Old 05-27-2008 , 02:40   Re: Task Scheduler - by JustinHoMi
Reply With Quote #135

How I can restart round (sv_restartround 1) after first round (if it finish, round will be restart) on every map ?
eXtrim is offline
Dark-Master
Member
Join Date: Jul 2008
Location: Bangkok, Thailand
Old 07-13-2008 , 23:49   Re: Task Scheduler - by JustinHoMi
Reply With Quote #136

If server changes the map in a task time, will a task run after map changed ?
Dark-Master is offline
kich0
Member
Join Date: Aug 2008
Old 01-25-2009 , 14:11   Re: Task Scheduler - by JustinHoMi
Reply With Quote #137

I want it to print in HUD LIVE LIVE LIVE , 120 seconds after map change...so would it be something like this??

amx_task 120 "amx_tsay LIVE LIVE LIVE !!! GL ^ HF !!!" s
amx_task 120 "amx_tsay LIVE LIVE LIVE !!! GL ^ HF !!!" s
amx_task 121 "amx_tsay LIVE LIVE LIVE !!! GL ^ HF !!!" s
__________________
Steam : Scolberg
kich0 is offline
tomato_love
Junior Member
Join Date: Feb 2009
Old 02-23-2009 , 17:09   Re: Task Scheduler - by JustinHoMi
Reply With Quote #138

Hi, i want to change my hostname at certain times to coincide with mods that will be running at the same time

amx_task 17:05 "hostname Ollie's Pub [Happy Hour]" tr

When i use that it only changes it to "Ollie" How can i phrase this to use the entire hostname?

Also what command would i use for a simple server restart?

I have this:

amx_task 17:07 "rcon restart" tr

which dosnt seem to be working, amx_rcon restart didnt appear to work either.
tomato_love is offline
tomato_love
Junior Member
Join Date: Feb 2009
Old 02-23-2009 , 17:47   Re: Task Scheduler - by JustinHoMi
Reply With Quote #139

NVM, i found it ;)

Code:
amx_task time:time "hostname \'blah spacehere blah blah something\'" t
tomato_love is offline
tomato_love
Junior Member
Join Date: Feb 2009
Old 02-23-2009 , 18:26   Re: Task Scheduler - by JustinHoMi
Reply With Quote #140

That still didnt help me...this is all i want:

amx_task 18:00 "hostname "Ollie's Pub [HappyHour]" tr

Cant figure it out :-\

Also, i want this particular schedule to repeat once a day, will just the 't' by itself do that? or am i correct having 'tr'?
tomato_love 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 02:18.


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