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
PHP Code:
#include <sourcemod>
#pragma semicolon 1 #pragma newdecls required
char g_sFilePath[256];
public Plugin myinfo = { name = "Delayed Command Exec", author = "The Doggy", description = "Executes commands x seconds after round start", version = "1.0.0", url = "coldcommunity.com" };
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 "delaycommands.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:
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
PHP Code:
#include <sourcemod>
#pragma semicolon 1
#pragma newdecls required
char g_sFilePath[256];
public Plugin myinfo =
{
name = "Delayed Command Exec",
author = "The Doggy",
description = "Executes commands x seconds after round start",
version = "1.0.0",
url = "coldcommunity.com"
};