View Single Post
CliptonHeist
Senior Member
Join Date: Feb 2016
Old 03-17-2019 , 05:33   Re: [REQ][CS:S] Timed Commands
Reply With Quote #3

Heya, only tested this on CS:GO but I see no reason why it wouldn't work on CS:S as well.

To setup the commands you want executed you need to create a file called "delayedcommands.txt" (without quotes) in your sourcemod/data folder. After that, you just add in the commands you want executed into the file 1 per line.

Example:
Quote:
// 30 = (amount of seconds until command will be executed) "sm_kick @all" = (the command that will be executed, the quotes are important!)

// Actual line would look something like this:
60 "sm_slay @t"
If you need to encase an argument inside the command in quotes then just use apostrophes e.g. "sm_kick 'worst player'" and the plugin will automatically convert them to quotes.

Let me know if there's any bugs or suggestions you want added.

Code:
Spoiler
Attached Files
File Type: sp Get Plugin or Get Source (delayedcommands.sp - 110 views - 2.2 KB)

Last edited by CliptonHeist; 03-17-2019 at 16:15. Reason: oops
CliptonHeist is offline