Raised This Month: $94 Target: $400
 23% 

Server Tasks v2.0


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Server Management        Approver:   Arkshine (91)
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 07-03-2011 , 07:05   Server Tasks v2.0
Reply With Quote #1

Server Tasks v2.0


Servers Running Server Tasks v2.0



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.

Attached Files
File Type: cfg day_config.cfg (62 Bytes, 1643 views)
File Type: cfg night_config.cfg (64 Bytes, 1597 views)
File Type: ini server_tasks.ini (434 Bytes, 1216 views)
File Type: sma Get Plugin or Get Source (server_tasks.sma - 2037 views - 4.3 KB)
__________________

Last edited by claudiuhks; 09-22-2018 at 01:59.
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
Artifact
Veteran Member
Join Date: Jul 2010
Old 07-03-2011 , 07:13   Re: Server Tasks v1.0
Reply With Quote #2

GREAT JOB !!! I test it...
__________________
Artifact is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 07-03-2011 , 07:19   Re: Server Tasks v1.0
Reply With Quote #3

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.
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 07-03-2011 , 07:29   Re: Server Tasks v1.1
Reply With Quote #4

You're right
__________________
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
dfwu.dark
Senior Member
Join Date: Mar 2011
Location: In dreams...
Old 07-03-2011 , 07:31   Re: Server Tasks v1.1
Reply With Quote #5

oyyyy nice claudiuhks ...I really Like This Plugin
__________________
[url]http://hw-movie.blogspot.com[/url]
Watch Latest Movies Online For Free !...
dfwu.dark is offline
Send a message via Skype™ to dfwu.dark
Shadymn
Senior Member
Join Date: Sep 2010
Old 07-03-2011 , 07:44   Re: Server Tasks v1.1
Reply With Quote #6

sounds great. But i am afraid of if it exists
Shadymn is offline
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 07-03-2011 , 07:47   Re: Server Tasks v1.1
Reply With Quote #7

Yea, one like this exists. There's big differences between these, so just leave it
__________________
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
Shadymn
Senior Member
Join Date: Sep 2010
Old 07-03-2011 , 07:51   Re: Server Tasks v1.1
Reply With Quote #8

okay. It is simple and i think it will be useful gj
Shadymn is offline
aLaDiN
Member
Join Date: Jan 2011
Location: Bulgarian
Old 07-03-2011 , 08:25   Re: Server Tasks v1.1
Reply With Quote #9

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 ?

Last edited by aLaDiN; 07-03-2011 at 08:29.
aLaDiN is offline
Send a message via Skype™ to aLaDiN
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 07-03-2011 , 09:18   Re: Server Tasks v1.1
Reply With Quote #10

Anything you write after the '=' will be sent to the server console.

01:00 =THIS WILL BE SENT TO THE SERVER CONSOLE
__________________
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
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 20:28.


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