Raised This Month: $ Target: $400
 0% 

Timed Commands


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   ALL        Category:   Server Management        Approver:   Hawk552 (427)
Drak
Veteran Member
Join Date: Jul 2005
Old 03-07-2007 , 15:57   Timed Commands
Reply With Quote #1

Timed Commands v1.5a

Description:
Allows you to activate commands via text file, on a certain date/month. When the server starts, it loads the file (dynamic.ini) located in your configs dir. (Created when the plugin first runs)

Change Log:
v1.0 First release.
v1.0a Minor code changed, used Emp` suggestion
v1.5a Optimized some things.

CVAR:
amx_timecommands 1/0 - Enables/Disables the command activating.

Commands:
amx_dynamic_reload - Reloads the config file. (Requires ADMIN_IMMUNITY)

File:
You can place the commands you wish to run into the file, information below.
Code:
/////////////////////////////////////////////////////////////////////////////////// // Dynamic.ini // Format: #month #date "Command" // EX: 12 5 "sv_password 1" // // On December fifth, on new map and or start-up it will do the command "sv_password 1" // The date/time goes by the server's computer time, make sure it's set correctly! ////////////////////////////////////////////////////////////////////////////////////
So if you wanted to change the hostname of the server on March 8th
You add this into the file:
Code:
3 8 "hostname New-Name 1"
Attached Files
File Type: sma Get Plugin or Get Source (time_commands.sma - 1606 views - 2.2 KB)

Last edited by Drak; 08-10-2008 at 21:01.
Drak is offline
Send a message via MSN to Drak
 



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 22:14.


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