Raised This Month: $7 Target: $400
 1% 

Task Scheduler - by JustinHoMi


Post New Thread Reply   
 
Thread Tools Display Modes
P4rD0nM3
Veteran Member
Join Date: Feb 2006
Old 07-22-2007 , 17:47   Re: Task Scheduler - by JustinHoMi
Reply With Quote #101

Quote:
Originally Posted by lantz69 View Post
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?
P4rD0nM3 is offline
lantz69
AMX Mod X Beta Tester
Join Date: Mar 2004
Location: Sweden, Skåne
Old 07-23-2007 , 04:16   Re: Task Scheduler - by JustinHoMi
Reply With Quote #102

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
__________________
Using: Amxmodx 1.8.1.xxxx, cstrike
http://www.vanilla.se/
lantz69 is offline
P4rD0nM3
Veteran Member
Join Date: Feb 2006
Old 07-24-2007 , 04:12   Re: Task Scheduler - by JustinHoMi
Reply With Quote #103

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?
P4rD0nM3 is offline
BlackMilk
Veteran Member
Join Date: Jun 2007
Old 07-24-2007 , 07:57   Re: Task Scheduler - by JustinHoMi
Reply With Quote #104

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
__________________
Mod:
User:
BlackMilk is offline
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
lantz69
AMX Mod X Beta Tester
Join Date: Mar 2004
Location: Sweden, Skåne
Old 09-03-2007 , 17:18   Re: Task Scheduler - by JustinHoMi
Reply With Quote #106

dont use tr only t
__________________
Using: Amxmodx 1.8.1.xxxx, cstrike
http://www.vanilla.se/
lantz69 is offline
panda82
Member
Join Date: Aug 2007
Old 09-04-2007 , 18:20   Re: Task Scheduler - by JustinHoMi
Reply With Quote #107

Quote:
Originally Posted by lantz69 View Post
dont use tr only t

i tryed ... they didn't make nothing.
panda82 is offline
lantz69
AMX Mod X Beta Tester
Join Date: Mar 2004
Location: Sweden, Skåne
Old 09-05-2007 , 04:18   Re: Task Scheduler - by JustinHoMi
Reply With Quote #108

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
__________________
Using: Amxmodx 1.8.1.xxxx, cstrike
http://www.vanilla.se/
lantz69 is offline
dhair
Junior Member
Join Date: Oct 2006
Location: Poland, Jastrzębie
Old 09-07-2007 , 12:34   Re: Task Scheduler - by JustinHoMi
Reply With Quote #109

Quote:
Originally Posted by PsychoZone.dk View Post
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.
dhair is offline
panda82
Member
Join Date: Aug 2007
Old 09-09-2007 , 17:07   Re: Task Scheduler - by JustinHoMi
Reply With Quote #110

Quote:
Originally Posted by lantz69 View Post
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
panda82 is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:01.


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