View Single Post
panda82
Member
Join Date: Aug 2007
Old 09-03-2007 , 17:12   Re: Task Scheduler - by JustinHoMi
Reply With Quote #105

Quote:
Originally Posted by pendragon View Post
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.
i put this in amxx.cfg

Code:
 
amx_task 0:00 "amx_map sj_league" tr
amx_task 0:01 "amx_cvar mp_timelimit 0" tr
amx_task 9:00 "amx_map awp_india" tr
amx_task 9:01 "amx_cvar mp_timelimit 25" tr
amx_task 3 "amx_say Cereri: admine, sloturi, reclamatii, unban! ---" mr
and only this work

Code:
amx_task 3 "amx_say Cereri: admine, sloturi, reclamatii, unban! ---" mr
what about the others ?
panda82 is offline