I've posted this on SDKHook thread but no one seems to watch it anymore. So here is my problem:
I have a "Double Hook" issue on CS:GO
When running that simple code:
PHP Code:
#include <sourcemod>
#include <sdkhooks>
public Hook_OnWeaponSpawned(weaponEntity)
{
PrintToChatAll("Hook_OnWeaponSpawned %d", weaponEntity);
}
public OnEntityCreated(entity, const String:classname[])
{
if(StrEqual(classname, "weapon_knife"))
{
PrintToChatAll("OnEntityCreated %d", entity);
SDKHook(entity, SDKHook_Spawn, Hook_OnWeaponSpawned);
}
}
OnEntityCreated gets called once but Hook_OnWeaponSpawned is called twice...
What could be causing this?
Note: My SdKtool version
Code:
[10] SDK Hooks (1.5.4-dev+4028): Source SDK Hooks