Add ability to change dontBroadcast status on hooked events (bug 3886, r=ds).

This commit is contained in:
David Anderson
2009-12-19 18:16:41 -08:00
parent fe405df704
commit 02a99f1e51
6 changed files with 74 additions and 3 deletions
+14
View File
@@ -241,3 +241,17 @@ native SetEventString(Handle:event, const String:key[], const String:value[]);
* @error Invalid or corrupt Handle.
*/
native GetEventName(Handle:event, String:name[], maxlength);
/**
* Sets whether an event's broadcasting will be disabled or not.
*
* This has no effect on events Handles that are not from HookEvent
* or HookEventEx callbacks.
*
* @param event Handle to an event from an event hook.
* @param dontBroadcast True to disable broadcasting, false otherwise.
* @noreturn
* @error Invalid Handle.
*/
native SetEventBroadcast(Handle:event, bool:dontBroadcast);