Scheduler 1.4
Release: April, 01, 2022 | Last Update: April, 18 2022
Description- Plugin is designed to perform tasks on a schedule (only by time).
- Tested on the following versions of amxmodx: 1.9.0
- Works on ReHLDS or HLDS
- For Counter Strike 1.6
Install- Unpack the archive
- Compile or move an compiled plugin to the plugins folder
- Create a new configuration file in the configuration section with the following name: scheduler.cfg
- Register the plugin (preferably at the very end) in the plugins.ini file
- Enjoy
Configuration- In the plugin configuration file (scheduler.cfg), you can create from one to several tasks.
- Just like all server commands, you can use them from the server console.
- To add and execute them, you must use the commands described below.
Tasks
New
Code:
scheduler_new_task "name" hours minutes seconds
- Each created task is transferred to the editing mode to fill in its commands as well as other properties.
- If you need to specify the time at 00 o'clock you should use the value 24.
- If one of the time components does not need to be used, set 0.
- Length of the task name is limited in the plugin source file.
- Task will not be completed while it is in this mode.
Delete
Code:
scheduler_delete_task
- Deletes the selected task.
Clear
Code:
scheduler_clear_tasks
Select
Code:
scheduler_select_task "name"
- Searches for a task by name and sets it to edit mode.
- Only one task can be in editing mode.
Unselect
Code:
scheduler_unselect_task
- Disables the editing mode of the selected task.
- If you do not execute this command after creating or selecting by name using the (select task) function, the task will be in editing mode until a new task is selected, unseletected or created.
Change time
Code:
scheduler_change_time "hours" "minutes" "seconds"
- Replaces the initial execution time of the selected task.
Change endtime
Code:
scheduler_change_duration "hours" "minutes" "seconds"
- Sets the duration time of the selected task.
Change duration
Code:
scheduler_change_endtime "hours" "minutes" "seconds"
- Sets the end time of the selected task.
Commands
Plugin commands can only be used from the server console or from the plugin configuration. After executing the commands, thetask is assigned the status completed and does not fall under further processing.
Add
Code:
scheduler_add_command "Command1" "Command2" ...
- Adds one or more tasks to the selected task.
- Length of a single command is limited in the plugin source file (default: 127).
Change
Code:
scheduler_change_command id "Command1" "Command2" ...
- Replaces the command text with its unique number.
- Unique numbers start counting from zero and are assigned in the order of addition.
Delete
Code:
scheduler_delete_command id
- Deletes a command by its ID in the selected task.
Clear
Code:
scheduler_clear_commands
- Deletes all commands of the selected task.
Pause & Unpause
The plugin can be suspended using the
pausecfg plugin, which is part of
amxmodx. After removing the plugin from the pause, the preload time is counted, which is determined by the
sheduler_preload_delay parameter.
CVars
Code:
scheduler_check_delay 1.0
- Sets the seconds of operation of the internal timer for checking and completing tasks. Minimum value is 0.1.
- Increase this value by 60 seconds or only for 3600 hours. new CVar value will be applied only after the previous value is counted.
Quote:
If you don't have tasks by seconds or minutes, you can increase the check by 3600 seconds. This will relieve the burden of frequent checking. If only hours and minutes, set 60 seconds.
|
Code:
scheduler_preload_delay 3.0
- Delay before checking and completing tasks.
Download