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

Task Scheduler - by JustinHoMi


Post New Thread Reply   
 
Thread Tools Display Modes
krysteksulek
Member
Join Date: Aug 2013
Location: Poland
Old 11-04-2013 , 18:04   Re: Task Scheduler - by JustinHoMi
Reply With Quote #161

Hi, i have problem with error logs:

Code:
L 11/04/2013 - 02:52:15: [AMXX] Displaying debug trace (plugin "task_scheduler.amxx")
L 11/04/2013 - 02:52:15: [AMXX] Run time error 4: index out of bounds 
L 11/04/2013 - 02:52:15: [AMXX]    [0] 311.attach::load_task (line 43)
My amxx.cfg:

Code:
amx_task 02:33 "amx_map de_westwood_big" t
amx_task 02:36 "amx_cvar mp_roundtime 9" t
amx_task 02:36 "amx_cvar mp_timelimit 40" t
amx_task 02:36 "amx_pausecfg enable day.amxx" t 
amx_task 02:36 "amx_pausecfg save" t


amx_task 02:42 "amx_cvar mp_roundtime 2" t
amx_task 02:42 "amx_cvar mp_timelimit 20" t
amx_task 02:42 "amx_pausecfg pause day.amxx" t
amx_task 02:42 "amx_pausecfg save" t
amx_task 02:42 "amx_votenextmap" t
Also in chat, plugin always say's cvars or changelevel twice.
Please help.
krysteksulek is offline
Kakarotto
Senior Member
Join Date: Apr 2014
Old 06-24-2014 , 17:05   Re: Task Scheduler - by JustinHoMi
Reply With Quote #162

i got question ,; i cannot understand this plugin correctly so can someone help me !!!
for example i have my 4 commands i want do like that :

1 - When i start server it will add this commands :

amx_off
pb_minbots 1
pb_maxbots 1
amx_on

2 - after 2 minutes

amx_off
pb_minbots 2
pb_maxbots 2
amx_on


2 - after 3 minutes = ( in total from the first task 6 minutes )

amx_off
pb_minbots 2
pb_maxbots 2
amx_on

3 - after 1 minutes = ( in totaly 7 minutes after the firs task

amx_off
pb_maxbots 3
pb_minbots 3
amx_on

and i want complete to 32 tasks after differents times !!!
can anyone explain me easy how too !!! PlzZzZ
Kakarotto is offline
GBLTeam
Senior Member
Join Date: Mar 2012
Location: Republic of Macedonia
Old 03-12-2015 , 15:34   Re: Task Scheduler - by JustinHoMi
Reply With Quote #163

From this plugin server always crash.
GBLTeam is offline
Send a message via MSN to GBLTeam Send a message via Skype™ to GBLTeam
dsKed cristy
New Member
Join Date: Mar 2010
Old 12-08-2015 , 21:58   Re: Task Scheduler - by JustinHoMi
Reply With Quote #164

Is there any chances to set a task in this plugin to activate another plugin by a certain date&hour?

Let's say I want to activate plugin amx_blabla.amxx in each Monday or a certain day on a certain hour.

For example I want to activate amx_blabla.amxx Monday, 20th of december between hours 12:00-14:00

How can I do that?

Last edited by dsKed cristy; 12-08-2015 at 21:59.
dsKed cristy is offline
addons_zz
Veteran Member
Join Date: Aug 2015
Location: Dreams, zz
Old 12-09-2015 , 12:34   Re: Task Scheduler - by JustinHoMi
Reply With Quote #165

Quote:
Originally Posted by dsKed cristy View Post
How can I do that?
You can write a plugin that when it is "20th of December at 12:00", creates a file called "plugins-monday.ini" at .configs folder containing the plugins you want to active and then restart the server.

Later at 14:00, your plugin delete that file and restart the server.

To do that, you can learn/adapt/create it from this "Task Scheduler - by JustinHoMi" and "Multi-Mod Manager". Because, the first use time operations, and the second use file creation and deletion.

Update:

If you don't know how to code and do not want to learn it, you can go to Suggestions / Requests.

If you don't know how to code and you want to learn coding, you can go to Code Snippets/Tutorials

Last edited by addons_zz; 12-10-2015 at 12:03. Reason: spelling fixes
addons_zz is offline
ssproxima
Senior Member
Join Date: Jan 2015
Old 11-20-2016 , 06:14   Re: Task Scheduler - by JustinHoMi
Reply With Quote #166

Can anybody help me with the format to be written in amxx.cfg in the following plugin for amx_addban
ssproxima is offline
zi443r
Senior Member
Join Date: Mar 2009
Location: Braila,Romania
Old 11-21-2016 , 04:35   Re: Task Scheduler - by JustinHoMi
Reply With Quote #167

Quote:
Originally Posted by ssproxima View Post
Can anybody help me with the format to be written in amxx.cfg in the following plugin for amx_addban
amx_task 35 "amx_addban 100.0.0.1 0 test" s

this example bans in 35 seconds, the ip 100.0.0.1, permanently for the reason test
__________________
zi443r is offline
ssproxima
Senior Member
Join Date: Jan 2015
Old 11-21-2016 , 10:19   Re: Task Scheduler - by JustinHoMi
Reply With Quote #168

Quote:
Originally Posted by zi443r View Post
amx_task 35 "amx_addban 100.0.0.1 0 test" s

this example bans in 35 seconds, the ip 100.0.0.1, permanently for the reason test
yippe it is working fine thank you very much

Last edited by ssproxima; 11-21-2016 at 10:52.
ssproxima is offline
blood2k
Senior Member
Join Date: Mar 2014
Old 12-04-2016 , 20:12   Re: Task Scheduler - by JustinHoMi
Reply With Quote #169

I'm having an issue with announcing my server restart coming up..
my server is scheduled for a restart at "4pm pacific time"

Would i do something like
amx_task 12:50 "amx_say Server restart in 10 minutes" t
amx_task 12:55 "amx_say Server restart in 5 minutes" t


I've tried putting that into amxx.cfg and wont work
blood2k is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-04-2016 , 20:54   Re: Task Scheduler - by JustinHoMi
Reply With Quote #170

Put quotes around the time. Also, 4 PM would be 16:00 so you would need "15:50" and "15:55".

Remember that the time you use is based on the clock of the server. So, if the server has its clock set to GMT -6 then you'll need to make sure that your time is based on GMT -6. If you rent from a game server host, they typically have the clock set to the local time. So, if it is hosted in Chicago, then you'll need to use Chicago time.
__________________

Last edited by fysiks; 12-04-2016 at 20:59.
fysiks 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 09:33.


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