AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Task Scheduler - by JustinHoMi (https://forums.alliedmods.net/showthread.php?t=1263)

OutSider03 01-19-2018 02:34

Re: Task Scheduler - by JustinHoMi
 
Quote:

Originally Posted by Stardust (Post 12724)
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


Siska1 03-15-2023 07:39

Re: Task Scheduler - by JustinHoMi
 
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 ?

fysiks 03-15-2023 18:31

Re: Task Scheduler - by JustinHoMi
 
Quote:

Originally Posted by Siska1 (Post 2801259)
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 (Post 2801259)
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).

Siska1 03-15-2023 21:44

Re: Task Scheduler - by JustinHoMi
 
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

fysiks 03-16-2023 22:35

Re: Task Scheduler - by JustinHoMi
 
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.

Siska1 03-16-2023 23:10

Re: Task Scheduler - by JustinHoMi
 
config file yes , but what can i do in this case ?

fysiks 03-17-2023 21:15

Re: Task Scheduler - by JustinHoMi
 
Remove it from the config file.

Siska1 03-18-2023 10:15

Re: Task Scheduler - by JustinHoMi
 
Quote:

Originally Posted by fysiks (Post 2801369)
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 :D
which doesn't seem like a good option to me...


All times are GMT -4. The time now is 10:03.

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