Skip to content

Instantly share code, notes, and snippets.

@zudsniper
Created October 21, 2022 07:34
Show Gist options
  • Save zudsniper/c90e7b7584bc665299a8052b88d27f85 to your computer and use it in GitHub Desktop.
Save zudsniper/c90e7b7584bc665299a8052b88d27f85 to your computer and use it in GitHub Desktop.
Stupid little SourceMod plugin to execute a specific cfg file ONLY ONCE at a VERY SPECIFIC time.
#include <sourcemod>
#pragma semicolon 1
#pragma newdecls required
public Plugin myinfo = {
name = "ThisCFGLast",
author = "zudsniper@github",
description = "thiscfglast.cfg in the /tf/cfg/ is called LAST, after all other configs have been called.",
version = "0.0.1",
url = "https://contenthell.earth/"
};
public void OnPluginStart()
{
PrintToServer("ThisCFGLast is loading...");
}
public void OnConfigsExecuted()
{
PrintToServer("It's time. Exec'ing `/tf/cfg/thiscfglast.cfg...");
ServerCommand(exec thiscfglast.cfg);
PrintToServer("It is done.");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment