return PLUGIN_HANDLED_MAIN
Could someone explain what this does and when to use it? I've searched for it, but none of them explain return PLUGIN_HANDLED_MAIN
|
It works like this (say your function is client_PreThink):
PLUGIN_CONTINUE stops the current plugin's actions in PreThink but allows other plugins to use it PLUGIN_HANDLED stops all plugins after current plugin (in plugins.ini) from using PreThink and (when it can) blocks the actual engine call. [not sure]PLUGIN_HANDLED_MAIN stops the actual engine call (when it can) but lets other plugins use their code in PreThink as if the call was let through[/not sure]. Well, PreThink is not a good example because it can't actually be blocked, but something like client_infochanged should be able to be blocked. |
amxconst.inc!
Code:
So, yeah, basically what euphoria just said. |
| All times are GMT -4. The time now is 09:58. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.