Bz Load

From BZFlagWiki
Revision as of 19:17, 10 July 2011 by Allejo (Talk | contribs) (edited the example)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Code Example[edit]

 BZF_PLUGIN_CALL int bz_Load ( const char* /*commandLine*/ ) {
     bz_debugMessage(4,"SAMPLE_PLUGIN plugin loaded");
     return 0;


The bz_Load function is required for all plugins. In this function all debug messages, events, map objects, and slash commands are registered. Available functions for this are as follows:


All calls to bz_Load have been deprecated as of 2.4 and will be replaced with:

# void SAMPLE_PLUGIN::Init ( const char* config);

More information on this function can be found on the BZFS_API_2.4_Upgrade page.