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"