I need to prehook this function and override it, but I can't find a way to do it.
IServerTools has this function, but how can I hook it?
I've got a strange behavior with the most recent sdk
This hook only works under linux:
Quote:
SH_ADD_HOOK_MEMFUNC(IVEngineServer, RemoveEdict, engine, &g_interface, &Extension::RemoveEdict, false);
|
I've checked this extension:
https://forums.alliedmods.net/showthread.php?t=186830
CreateEdict/RemoveEdict don't' work under windows either
This hook only works when I call this function: servertools->CreateEntityByName("prop_dynamic");
Quote:
SH_ADD_HOOK_MEMFUNC(IServerTools, CreateEntityByName, servertools, &g_interface, &Extension::CreateEntityByName, false);
|
But it doesn't work with server entities and GiveNamedItem