Quote:
Originally Posted by NiHiLaNTh
for bots you have to use RegisterHamFromEntity
|
in client_authorized forward right?
Quote:
Originally Posted by ConnorMcLeod
If you want that another plugin than the one you are showing can detect that your plugin has blocked the function, then you have to declare your plugin before the second one in plugins.ini
|
so zombie_plague.amxx should come after my zombieclass in plugins.ini, that wont give problems?
Quote:
Originally Posted by ConnorMcLeod
And in the other plugin (main ZP plugin from what i understand), you have to check the return status when the forward is called
if( GetHamReturnStatus() == HAM_SUPERCEDE ) return;
Something like that.
|
But I am using a forward from hamsandwich, not a forward from ZP so how can i do that?
In Ham_TakeDamage pre hook from zombieplague? will the main zp be able to pick up on the returned value from my zombieclass because my class loaded first, then zp?
Quote:
Originally Posted by ConnorMcLeod
Also, in your code, 1st return should be HAM_IGNORED (you don't do anything), seconde return is correct (you want to block damage), and last return should be HAM_HANDLED (you have changed something but you don't want to block).
|
Ok ill try to keep that in mind. but when the forward comes from a custom plugin, the coder should still implement the possible return vallues to act on them? the return vallues are not by default in every plugin if it uses hamsandwich?
Thanks for the help so far guys
__________________