[Solved] Block event of another plugin
It would be possible to block a function from another plugin?
Example: I have the function: register_event (CurWeapon "," EventCurWeapon "," b "," 1 = 1 ") I want to block it with another plugin. It would be possible to block? Solution: Making changes in amxx module for blocking functions in an ini file. |
Re: Block event of another plugin
You could create a public variable. (xvar)
|
Re: Block event of another plugin
Like this?
PHP Code:
|
Re: Block event of another plugin
I don't know this methode but U can make a native and a boolean and check it in yours CurWeapon. If booleaon=true return plugin_handled (in curweapon).
|
Re: Block event of another plugin
In my case i dont want to modify the plugin.
|
Re: Block event of another plugin
Then what you want is not possible, or may be there is an orpheu supa way :mrgreen:
|
Re: Block event of another plugin
Nooo, i'm sad. I can not imagine how it would be in orpheus ^^
Any crazy idea? |
Re: Block event of another plugin
Try this:
PHP Code:
|
Re: Block event of another plugin
XVar, as in Variable.
Functions are not variables, so you cannot use them as XVars. |
Re: Block event of another plugin
Returning PLUGIN_HANDLED in most events stops them from continuing to the next plugin. So you would just have to have your plugin above the unchanged plugin in the plugins.ini.
|
| All times are GMT -4. The time now is 14:36. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.