-
Notifications
You must be signed in to change notification settings - Fork 1
/
Transparent_Broadcast.inc
48 lines (42 loc) · 1.16 KB
/
Transparent_Broadcast.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#if defined _Transparent_Broadcast_included
#endinput
#endif
#define _Transparent_Broadcast_included
enum TB_Type
{
TB_Chat,
TB_Hint,
TB_Center,
TB_Menu,
TB_TotalCount,
TB_Invalid
}
/**
* Add a broadcast to database
*
* @param type Broadcast type (Chat, Hint, Center, or Menu)
* @param breed Identifier to enable broadcast on certain server with identifier (Separated by | or "global" for all)
* @param game Identifier to enable broadcast on certain server with game type (Separated by | or "all" for all)
* @param admin_only Visible only to admin
* @param enabled Enable/Disable broadcast
* @param format Format
* @param ... Any additional formating data
* @noreturn
*/
native int TB_AddBroadcast(TB_Type type, const char[] breed, const char[] game, bool admin_only = false, bool enabled = true, const char[] format, any ...);
public SharedPlugin __pl_Transparent_Broadcast =
{
name = "Transparent_Broadcast",
file = "Transparent_Broadcast.smx",
#if defined REQUIRE_PLUGIN
required = 1,
#else
required = 0,
#endif
};
#if !defined REQUIRE_PLUGIN
public __pl_Transparent_Broadcast_SetNTVOptional()
{
MarkNativeAsOptional("TB_AddBroadcast");
}
#endif