Raised This Month: $ Target: $400
 0% 

Doubt about ham take damage (Ham_TakeDamage)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ghosted
Veteran Member
Join Date: Apr 2015
Location: Georgia
Old 06-16-2018 , 10:39   Re: Doubt about ham take damage (Ham_TakeDamage)
Reply With Quote #1

Quote:
Originally Posted by OciXCrom View Post
Plugins on top have priority over the ones below them. If plugin A is on top of plugin B and it stops some function/forward, it won't be called in plugin B.
A good example for this is why we (or at least I do) always put gag plugins on top of plugins.ini, so they can block adminchat.amxx.
In this case u are wrong, cause hamsandwich replaces original function with yours and after registering first hook, calling struct will be something like this:
Function A => Original Function
and after 2nd hook it would be:
Function B => Function A => Original Function

(Cause function that will be replaced is Function A & not Orignal Function or something else).

Note: Function A is in Plugin A which is first in plugins.ini & Plugin B (Function B) is last one.
__________________

[MOD] CS Weapon Mod V1.7.1
[MM] MetaMod-C V1.0
[MOD] CS NPC Mod (5%)


Probably Left AM

Last edited by Ghosted; 06-16-2018 at 10:40.
Ghosted is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:39.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode