Amaroq7 / SPMod

SourcePawn Scripting Engine for Half-Life 1 based games
GNU General Public License v3.0
27 stars 12 forks source link

Controlling loading of plugins #39

Open fant1kua opened 5 years ago

fant1kua commented 5 years ago

Description

The main idea is to control loading procces of plugins. For example this might be useful to enable some plugins at day and other at night. Or some plugins can depend by map name or other factors. But it is so hard to create configuration system that can take all possible options. Thats why i propose to create sm plugin where users can do it manually. Inside this should be only one hook thats can return enable or disable plugin. And of course some natives for getting date/time or map name. For example forward PluginReturn OnPLuginLoading(PluginInfo pluginInfo);

How do we replicate the issue?

Expected behavior (i.e. solution)

Other Comments