A task scheduler to perform server commands at a specified interval or a specific time. Based on Clanmod's "cm_task".
Usage:
Put tasks in your amx.cfg (or could possibly work in server.cfg) in the format:
amx_task time "command" flags
Flags:
m - time is in minutes
s - time is in seconds
r - repeat task
t - specific time (0:00-23:59, assumes "r" flag)
For example to restart the round every 5 minutes use:
amx_task 5 "sv_restart 1" mr
-------------------------------------------------------------
originally by
JustinHoMi
original amx thread:
http://djeyl.net/forum/index.php?showtopic=4130&st=0
NOTE: chagned all the "time" variables to "clock"
added: #include <amxmodx>
thanks to Bailopan and Gizzard for their help.