View Single Post
Author Message
ReFlexPoison
☠☠☠
Join Date: Jul 2011
Location: ☠☠☠
Old 05-08-2012 , 22:22   [ANY] Command Cycle
Reply With Quote #1

Command Cycle
Description:

Execute commands via config file every designated amount of time. This is made for servers that would basically like to run a specified command every few minutes or so.

First off, I do not suggest setting the timer for your commands to run every 5 seconds. This will most likely cause lag to the server and instability if your server is running on a low grade computer.

If you are going to advertise something using sm_say commands, use this.
If you want to run commands at a certain time of day, use this.

This will run exec commands in the console. If any command has an output that displays in console, it will display in console each time the command(s) run. These will record in logs if logs are enabled.

CVar's (Defaults):
PHP Code:
sm_comcycle_enabled "1" Enable Command Cycle
sm_comcycle_time 
"120" Time Increment to Run Commands 
Version Log:
Spoiler

Installation:
PHP Code:
comcycle.smx addons\sourcemod\plugins\
comcycle.cfg cfg\sourcemod
See my other plugins.
Attached Files
File Type: sp Get Plugin or Get Source (comcycle.sp - 1161 views - 1.6 KB)
File Type: zip comcycle.zip (4.5 KB, 554 views)

Last edited by ReFlexPoison; 10-27-2012 at 22:03. Reason: Initial Release
ReFlexPoison is offline