View Single Post
Whai
Senior Member
Join Date: Jul 2018
Old 11-03-2018 , 16:26   Re: [TF2] OnTakeDamage : Is it possible to hook an entity ?
Reply With Quote #5

Quote:
Originally Posted by Neuro Toxin View Post
Code:
public void OnEntityCreated(int entity, const char[] classname) 
{ 
    // check if the classname param is the tank
    { 
        SDKHook(entity, SDKHook_OnTakeDamage, OnPropTakeDamage); 
    } 
}
Thanks for this, I'll try later

Edit : Thanks ! That worked, there is no spam message and I don’t lag anymore
__________________

Last edited by Whai; 11-03-2018 at 16:48.
Whai is offline