plugins/include/events.inc
changeset 2883 1d7b415cef73
parent 2289 44045ead61cd
child 3967 ceafb87d38a7
     1.1 --- a/plugins/include/events.inc	Sat Dec 19 12:57:26 2009 -0800
     1.2 +++ b/plugins/include/events.inc	Sat Dec 19 18:16:41 2009 -0800
     1.3 @@ -241,3 +241,17 @@
     1.4   * @error				Invalid or corrupt Handle.     
     1.5   */
     1.6  native GetEventName(Handle:event, String:name[], maxlength);
     1.7 +
     1.8 +/**
     1.9 + * Sets whether an event's broadcasting will be disabled or not.
    1.10 + *
    1.11 + * This has no effect on events Handles that are not from HookEvent
    1.12 + * or HookEventEx callbacks.
    1.13 + *
    1.14 + * @param event         Handle to an event from an event hook.
    1.15 + * @param dontBroadcast True to disable broadcasting, false otherwise.
    1.16 + * @noreturn
    1.17 + * @error               Invalid Handle.
    1.18 + */
    1.19 +native SetEventBroadcast(Handle:event, bool:dontBroadcast);
    1.20 +