Raised This Month: $51 Target: $400
 12% 

return PLUGIN_HANDLED_MAIN


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
KCE
Senior Member
Join Date: Jan 2005
Location: Los Angeles, CA
Old 04-17-2005 , 01:40   return PLUGIN_HANDLED_MAIN
Reply With Quote #1

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
__________________

My 3D Art: http://k-c-e.deviantart.com/

[img]http://img213.**************/img213/7132/userbar152416mp2.gif[/img]
[img]http://img65.**************/img65/5606/userbar152433ie5.gif[/img]
[img]http://img223.**************/img223/7576/userbar152440yk6.gif[/img]
KCE is offline
twistedeuphoria
Veteran Member
Join Date: Jul 2004
Old 04-17-2005 , 02:02  
Reply With Quote #2

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.
__________________
twistedeuphoria is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 04-17-2005 , 02:56  
Reply With Quote #3

amxconst.inc!

Code:
#define PLUGIN_CONTINUE  0    /* Results returned by public functions */ #define PLUGIN_HANDLED    1 /* stop other plugins */ #define PLUGIN_HANDLED_MAIN 2    /* to use in client_command(), continue all plugins but stop the command */

So, yeah, basically what euphoria just said.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX 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 20:39.


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