Created
October 21, 2022 07:34
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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