AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Server Tasks v2.0 (https://forums.alliedmods.net/showthread.php?t=161095)

claudiuhks 07-03-2011 06:05

Server Tasks v2.0
 
4 Attachment(s)
Server Tasks v2.0


Servers Running Server Tasks v2.0

https://www.gametracker.com/images/g...logo_black.png

(GameTracker)

Description

You can set many tasks.
These tasks are written in a .ini file that can easily be configured.
You also have a .cfg file for night and one for day.
One of these .cfg files is executed after each map change.
You can also leave these .cfg files empty or even erase them/ don't upload them.

How does a task look like?

"01:45" "changelevel de_dust2"

What is special in this plugin?

It's made with arrays instead of string global variables.
You could add unlimited tasks. It means there's no tasks limit.
You may set the tasks using a .ini configuration file.

How does the configuration file look like?

Code:

# Lines starting without " will be taken as comments!
# The format is :  "TIME" "COMMAND"

"02:02" "say Here's Johnny!"
"15:15" "changelevel de_dust2"

// DARK HOURS
// WHEN IS IT NIGHT? WHICH HOURS?
// CONFIGURE IT THE WAY YOU WANT!
// AVAILABLE HOURS :  00, 01, 02, 03, ..., 09, 10, 11, 12, ..., 13, 14, 15, ..., 19, 20, 21, 22, 23  [00 <-> 23]
//
"DARK HOURS" "23, 00, 01, 02, 03, 04, 05, 06, 07, 08, 09"

How to install?

Configure .ini and .cfg files the way you want. .cfg files are optional.
Upload .ini and .cfg files to your configs directory. .cfg files are optional.
Upload server_tasks.amxx file to your plugins directory.
Edit plugins.ini file adding server_tasks.amxx.


Artifact 07-03-2011 06:13

Re: Server Tasks v1.0
 
GREAT JOB !!! I test it...

drekes 07-03-2011 06:19

Re: Server Tasks v1.0
 
PHP Code:

if( szTime] == '0' )
        
server_cmd"exec addons/amxmodx/configs/ServerNight.cfg" );
    
else
    
server_cmd"exec addons/amxmodx/configs/ServerDay.cfg" );

hFile fopen"addons/amxmodx/configs/ServerTasks.ini""rt" ); 

Don't hardcode paths, use get_configsdir instead.

claudiuhks 07-03-2011 06:29

Re: Server Tasks v1.1
 
You're right :)

dfwu.dark 07-03-2011 06:31

Re: Server Tasks v1.1
 
oyyyy nice claudiuhks ...I really Like This Plugin

Shadymn 07-03-2011 06:44

Re: Server Tasks v1.1
 
sounds great. But i am afraid of if it exists

claudiuhks 07-03-2011 06:47

Re: Server Tasks v1.1
 
Yea, one like this exists. There's big differences between these, so just leave it :)

Shadymn 07-03-2011 06:51

Re: Server Tasks v1.1
 
okay. It is simple and i think it will be useful gj

aLaDiN 07-03-2011 07:25

Re: Server Tasks v1.1
 
Can this plugin start other plugin ? For example at 01:00 happy hour plugin start ? Or this plugin can doing only task like - changelevel/vote map and another server commands ?

claudiuhks 07-03-2011 08:18

Re: Server Tasks v1.1
 
Anything you write after the '=' will be sent to the server console.

01:00 =THIS WILL BE SENT TO THE SERVER CONSOLE


All times are GMT -4. The time now is 07:33.

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