Added removal callback & rehooking on those.
PHP Code:
public void OnMapStart()
{
//Hook Gamerules function in map start
DHookGamerules(g_hCanEntityBeUsePushed, false,Hook_Removed);
}
PHP Code:
public void Hook_Removed(int hookid)
{
LogFile("Hook %i got removed",hookid);
LogFile("reHooked %i",DHookGamerules(g_hCanEntityBeUsePushed, false,Hook_Removed));
}
its "rehooking" them, but still quits working after some time until I reload the plugin.
HTML Code:
06/09/2016 - 14:21:44 [CanEntityBePushed] Hook 91 got removed
06/09/2016 - 14:21:44 [CanEntityBePushed] reHooked 73
06/09/2016 - 14:42:56 [CanEntityBePushed] Hook 73 got removed
06/09/2016 - 14:42:56 [CanEntityBePushed] reHooked 73
06/09/2016 - 15:04:43 [CanEntityBePushed] Hook 72 got removed
06/09/2016 - 15:04:43 [CanEntityBePushed] reHooked 72
06/09/2016 - 15:04:48 [CanEntityBePushed] Hook 73 got removed
06/09/2016 - 15:04:48 [CanEntityBePushed] reHooked 73
06/09/2016 - 15:41:28 [CanEntityBePushed] Hook 73 got removed
06/09/2016 - 15:41:28 [CanEntityBePushed] reHooked 73
__________________