1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
function Initialize(Plugin) Plugin:SetName("SelfTest") Plugin:SetVersion(1) cPluginManager.AddHook(cPluginManager.HOOK_WORLD_STARTED, OnWorldStarted) LOG("Initialized " .. Plugin:GetName() .. " v." .. Plugin:GetVersion()) return true end function OnWorldStarted(World) LOG("Stopping") cRoot:Get():QueueExecuteConsoleCommand("stop"); return false end