[Break] Initial commit.

This commit is contained in:
zaCade
2023-01-14 15:26:05 +01:00
parent 191db90c38
commit 7e45230930
2 changed files with 271 additions and 0 deletions
+51
View File
@@ -0,0 +1,51 @@
#if defined _Break_include
#endinput
#endif
#define _Break_include
/**
* Called when a break is started
*
* @return None
*/
forward void Break_OnBreakStarted();
/**
* Called when a break is finished
*
* @return None
*/
forward void Break_OnBreakFinished();
/**
* Called when a break is cancelled
*
* @return None
*/
forward void Break_OnBreakCancelled();
/**
* Returns if a break is active
*
* @return True when in break, false otherwise
*/
native bool Break_IsBreakActive();
public SharedPlugin __pl_Break =
{
name = "Break",
file = "Break.smx",
#if defined REQUIRE_PLUGIN
required = 1
#else
required = 0
#endif
};
#if !defined REQUIRE_PLUGIN
public void __pl_Break_SetNTVOptional()
{
MarkNativeAsOptional("Break_IsBreakActive");
}
#endif