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)

P4rD0nM3 07-22-2007 17:47

Re: Task Scheduler - by JustinHoMi
 
Quote:

Originally Posted by lantz69 (Post 446410)
I use this and it works perfect every morning
Code:


amx_task 06:10 "amx_tsay red Restarting server in 60 seconds" t
amx_task 06:11 "exit" t


lantz, this works for you? You didnt' put the repeat command?

lantz69 07-23-2007 04:16

Re: Task Scheduler - by JustinHoMi
 
Yes it works for me as that is a specified time (hour and minute of the day) the server will exit every morning.
To use repeat command you do it like this where the time is specified in seconds.
Quote:

amx_task 600 "amx_say [INFO]Skriv /regg for att se hur ni reggar er for att kunna KICKA n'a'r serverN 'a'r FULL" r
amx_task 615 "amx_say [INFO]Skriv @ MEDDELANDE i team_say f'o'r att kunna meddela HEMLIGT till admins om fusk lr dyl." r
amx_task 630 "amx_say [INFO]Gratis bokning av Warservrar till medlemmar i VaNilla GamerZ. Se nyheten www.vanilla.se" r

P4rD0nM3 07-24-2007 04:12

Re: Task Scheduler - by JustinHoMi
 
I tried doing this...

Quote:

amx_task 06:10 "amx_tsay red Restarting server in 60 seconds" t
amx_task 06:11 "exit" t
But it doesn't work.

My servers have some map rotation in them...

How do you do it for servers that changes map?

I want it to shutdown every 12:00nn.

amx_task 12:00 "exit" t

or

amx_task 12:00 "exit" tr

or something else?

BlackMilk 07-24-2007 07:57

Re: Task Scheduler - by JustinHoMi
 
Erm, the quote says the tsay tells the players the server's gonna restart, yet you wanna shut it down?

You could just do what the players read off the tsay, and let it restart instead.

amx_task 12:00 "restart" t

or

amx_task 12:00 "restart" tr

panda82 09-03-2007 17:12

Re: Task Scheduler - by JustinHoMi
 
Quote:

Originally Posted by pendragon (Post 11751)
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 ?

lantz69 09-03-2007 17:18

Re: Task Scheduler - by JustinHoMi
 
dont use tr only t

panda82 09-04-2007 18:20

Re: Task Scheduler - by JustinHoMi
 
Quote:

Originally Posted by lantz69 (Post 526937)
dont use tr only t


i tryed ... they didn't make nothing.

lantz69 09-05-2007 04:18

Re: Task Scheduler - by JustinHoMi
 
Then do it like this
Code:

amx_task 00:00 "amx_map sj_league" t
amx_task 00:01 "amx_cvar mp_timelimit 0" t
amx_task 09:00 "amx_map awp_india" t
amx_task 09:01 "amx_cvar mp_timelimit 25" t


dhair 09-07-2007 12:34

Re: Task Scheduler - by JustinHoMi
 
Quote:

Originally Posted by PsychoZone.dk (Post 188839)
Sweet plugin. But could be VERY VERY nice if some1 could make the plugin for dates too. As a calender thing. Then this plugin would be VERY useful for PCWs/CWs, when you can plan a war on one specific date.

Hope somone will add the calender function in this plugin :)

taht's right. waiting till update.

panda82 09-09-2007 17:07

Re: Task Scheduler - by JustinHoMi
 
Quote:

Originally Posted by lantz69 (Post 527462)
Then do it like this
Code:

amx_task 00:00 "amx_map sj_league" t
amx_task 00:01 "amx_cvar mp_timelimit 0" t
amx_task 09:00 "amx_map awp_india" t
amx_task 09:01 "amx_cvar mp_timelimit 25" t


no they don't work


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

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