From BZFlagWiki
Revision as of 10:23, 19 October 2011 by Sigonasr2 (Talk | contribs) (Meant to use eWorldFinalized event. The eGameStartEvent isn't ready for loading plugins just yet.)

Jump to: navigation, search

bool bz_loadPlugin (const char* path, const char* params)

Attempts to load a plugin with the given path and filename along with any passed parameters.

path  -  The exact path to the file. In addition, it may be locally referenced starting from the path returned by bz_pluginBinPath().
params  -  The command separated list of file parameters to pass on to the plugin.
Whether or not the plugin was loaded successfully.


Attempt to load the FlagOnSpawn plugin with the parameters to give any team a WG flag on spawn when the game starts.

case bz_eWorldFinalized: {