From 1f5b735dbdae462da71bd426aa10e23bbbd92008 Mon Sep 17 00:00:00 2001 From: Impact Date: Sun, 22 Jan 2023 10:23:40 +0100 Subject: [PATCH] Add note about automatic unhook (#1910) --- plugins/include/sdkhooks.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/include/sdkhooks.inc b/plugins/include/sdkhooks.inc index 1c80cf3b..b6f73c19 100644 --- a/plugins/include/sdkhooks.inc +++ b/plugins/include/sdkhooks.inc @@ -378,6 +378,8 @@ forward Action OnLevelInit(const char[] mapName, char mapEntities[2097152]); /** * Hooks an entity * + * Unhooked automatically upon destruction/removal of the entity + * * @param entity Entity index * @param type Type of function to hook * @param callback Function to call when hook is called @@ -387,6 +389,8 @@ native void SDKHook(int entity, SDKHookType type, SDKHookCB callback); /** * Hooks an entity * + * Unhooked automatically upon destruction/removal of the entity + * * @param entity Entity index * @param type Type of function to hook * @param callback Function to call when hook is called