View Single Post
Author Message
marco811
New Member
Join Date: Jul 2019
Old 07-13-2019 , 19:39   Plugin does not call OnPluginStart when changing map
Reply With Quote #1

Hello. I am creating my first plugin but I have some serious problems. I was testing on my CSGO server in linux and when I changed the map the plugin does not call OnPluginStart. I thought it was a server problem, I installed a clean server on my computer (windows) and I have exactly the same problem.

My plugin:

Code:
#include <sourcemod>

public Plugin myinfo = {
	name = "Test plugin",
	author = "",
	description = "",
	version = "1.0",
	url = ""
};

public void OnPluginStart() {
	LogMessage("======================HELLO WORLD=========================");
}
My log file:
Code:
L 07/14/2019 - 01:36:47: SourceMod log file session started (file "L20190714.log") (Version "1.9.0.6281")
L 07/14/2019 - 01:36:47: -------- Mapchange to de_dust2 --------
L 07/14/2019 - 01:36:47: [test_plugin.smx] ======================HELLO WORLD=========================
L 07/14/2019 - 01:37:03: -------- Mapchange to de_dust2 --------
L 07/14/2019 - 01:37:11: -------- Mapchange to de_dust2 --------
L 07/14/2019 - 01:37:32: -------- Mapchange to de_dust2 --------
What am I doing wrong?
marco811 is offline