5 #if defined _sourcemod_included
8 #define _sourcemod_included
12 const String:name[], /* Plugin Name */
13 const String:description[], /* Plugin Description */
14 const String:author[], /* Plugin Author */
15 const String:version[], /* Plugin Version */
16 const String:url[], /* Plugin URL */
20 * Declare this as a struct in your plugin to expose its information.
23 * public Plugin:myinfo =
32 * Called when the plugin is fully initialized and all known external references are resolved,
33 * such as dynamic natives.
37 forward OnPluginInit();
40 * Called before OnPluginInit, in case the plugin wants to check for load failure.
42 * @param myself Handle to the plugin.
43 * @param late Whether or not the plugin was loaded "late" (after map load).
44 * @param error Error message buffer in case load failed.
45 * @param err_max Maximum number of characters for error message buffer.
46 * @return True if load success, false otherwise.
48 forward bool:OnPluginLoad(Handle:myself, bool:late, String:error[], err_max);
51 * Called when the plugin is first mapped into memory. Use this to set dynamic natives ONLY.
55 forward OnCreatePlugin();
58 * Called when the plugin is about to be unloaded.
62 forward OnPluginUnload();
65 * Called when the plugin's pause status is changing.
69 forward OnPluginPauseChange(bool:pause);