Hi everyone!
I'm looking for a solution, I think that might be easy...
So, I have one plugin (smx) and an include, I want that when server start, automatically execute de Include file too!
Here is the example:
Main Plugin File:
PHP Code:
#include <sourcemod>
#include "include_file.sp"
public void OnPluginStart()
{
SetPluginWork();
}
Include File:
PHP Code:
#include <SteamWorks>
public void SetPluginWork()
{
PrintToServer("The Include file started!");
}
Basically, when I start my server, the "PrintToServer("The Include file started!");" is not printed and anything that I run on that function "SetPluginWork()" not works. If I unload and load the Main Plugin the function SetPluginWork() start working with any problem...
So, is there any possibility to run that function at server start without needing unload and load the main plugin?
Thank you!