Raised This Month: $7 Target: $400
 1% 

Task Scheduler - by JustinHoMi


Post New Thread Reply   
 
Thread Tools Display Modes
OutSider03
New Member
Join Date: Jan 2018
Old 01-19-2018 , 02:34   Re: Task Scheduler - by JustinHoMi
Reply With Quote #181

Quote:
Originally Posted by Stardust View Post
I did this with the amx mod an this plugin, worked fine.
Only problem was that I wanted to specify this once, but the amx config file was run every mapload.

hmm how did I do this ...
I did something like
amx_task 18:00 "amx_tsay blue Evening mapcycle loaded" t
amx_task 18:01 "mp_timelimit 20" t
amx_task 18:02 "mapcyclefile evening.txt" t

then around 0100 I switched back
amx_task 01:00 "amx_tsay blue Standard mapcycle loaded" t
amx_task 01:01 "mp_timelimit 25" t
amx_task 01:02 "mapcyclefile mapcyclefile.txt" t


hmm how did I do this ...
I did something like
amx_task 18:00 "amx_tsay blue Evening mapcycle loaded" t
amx_task 18:01 "mp_timelimit 20" t
amx_task 18:02 "mapcyclefile evening.txt" t

then around 0100 I switched back
amx_task 01:00 "amx_tsay blue Standard mapcycle loaded" t
amx_task 01:01 "mp_timelimit 25" t
amx_task 01:02 "mapcyclefile mapcyclefile.txt" t


one nice thing about this plugin is delayed action, like shutdown

alias shutdown "exec shutdown.cfg"
---
file shutdown.cfg
--
amx_tsay red Shutting down server in 10 seconds
amx_task 10 "quit" s
amx_task 7 "amx_tsay red Server shutting down, come back later." s
--

then you just send "shutdown" to hlds via your favorite admin tool.

This plugin has endless possibilities, thx for the port!
So I tried to do something like this, but it's not working at all.
What is the problem?
I put the commands in amxx.cfg
Code:
amx_task 10:01 "mapcyclefile mapcyclefile.txt" tr
amx_task 10:00 "amx_setmod disable 1" tr
amx_task 10:00 "amxx unpause vip_fioriginal.amxx" tr
amx_task 10:00 "amxx unpause lastmanbets.amxx" tr
amx_task 10:00 "amx_map fy_snow" tr
amx_task 9:55 "amx_tsay blue Modul de Normal se activeaza in 5 minute!" tr
amx_task 9:50 "amx_tsay blue Modul de Normal se activeaza in 10 minute" tr
amx_task 9:30 "amx_tsay blue Modul de Normal se activeaza in 30 de minute!" tr
amx_task 9:00 "amx_tsay blue Modul de Normal se activeaza intr-o ora!" tr
OutSider03 is offline
Siska1
Senior Member
Join Date: Feb 2020
Location: BedRock
Old 03-15-2023 , 07:39   Re: Task Scheduler - by JustinHoMi
Reply With Quote #182

I want to ask if this thing is written correctly?

// Task Scheduler
amx_task 16:00 "yb_quota 0" tr
amx_task 02:00 "yb_quota 20" tr

because it doesn't work at all

Is it possible that this plugin is only for HLDS ?
__________________

Last edited by Siska1; 03-15-2023 at 07:40.
Siska1 is offline
Send a message via Skype™ to Siska1
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-15-2023 , 18:31   Re: Task Scheduler - by JustinHoMi
Reply With Quote #183

Quote:
Originally Posted by Siska1 View Post
I want to ask if this thing is written correctly?

// Task Scheduler
amx_task 16:00 "yb_quota 0" tr
amx_task 02:00 "yb_quota 20" tr

because it doesn't work at all
Did you try using some other command to verify that it's not just the command not working? Try doing something like "changelevel cs_assault" (assuming you're using Counter-Strike 1.6; or some other map) with a time 5 minutes from "now" and see if that works.

Quote:
Originally Posted by Siska1 View Post
Is it possible that this plugin is only for HLDS ?
This plugin is an AMX Mod X plugin so it will only run on the Half-Life 1 engine ("HLDS" stands for "Half-Life Dedicated Server) which is used by many games like Counter-Strike 1.6, TFC, Day of Defeat 1.3, etc. The code does not claim to be for any specific game though so it should work for all of them, generally. The other type of server is SRCDS which is for many of the newer games (which use SourceMod as opposed to AMX Mod X).
__________________
fysiks is offline
Siska1
Senior Member
Join Date: Feb 2020
Location: BedRock
Old 03-15-2023 , 21:44   Re: Task Scheduler - by JustinHoMi
Reply With Quote #184

I wrote it like that :
amx_task 02:00 "yb_quota 20" tr
amx_task 16:00 "yb_quota 0" tr

it worked but when the map is changed it returns it to 0
__________________
Siska1 is offline
Send a message via Skype™ to Siska1
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-16-2023 , 22:35   Re: Task Scheduler - by JustinHoMi
Reply With Quote #185

That usually happens because you have it in a config file somewhere or that feature resets itself. If it resets itself then I'm not sure what you can do about it, it's probably have to be built into the feature whether or not you can tell it to behave differently.
__________________
fysiks is offline
Siska1
Senior Member
Join Date: Feb 2020
Location: BedRock
Old 03-16-2023 , 23:10   Re: Task Scheduler - by JustinHoMi
Reply With Quote #186

config file yes , but what can i do in this case ?
__________________
Siska1 is offline
Send a message via Skype™ to Siska1
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-17-2023 , 21:15   Re: Task Scheduler - by JustinHoMi
Reply With Quote #187

Remove it from the config file.
__________________
fysiks is offline
Siska1
Senior Member
Join Date: Feb 2020
Location: BedRock
Old 03-18-2023 , 10:15   Re: Task Scheduler - by JustinHoMi
Reply With Quote #188

Quote:
Originally Posted by fysiks View Post
Remove it from the config file.
That was it, thank you very much.

Unfortunately, the module returns the default setting when it is not in the config

I couldn't figure out how to set it up other than calling the command every 5 min
which doesn't seem like a good option to me...
__________________

Last edited by Siska1; 03-20-2023 at 19:03.
Siska1 is offline
Send a message via Skype™ to Siska1
Reply


Thread Tools
Display Modes

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:38.


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