Raised This Month: $ Target: $400
 0% 

what's the difference between Plugin_Handled and Plugin_Stop?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
rsdtt
Senior Member
Join Date: Oct 2009
Old 06-28-2014 , 15:31   what's the difference between Plugin_Handled and Plugin_Stop?
Reply With Quote #1

it like the same work
__________________
I am learning sm now
rsdtt is offline
Impact123
Veteran Member
Join Date: Oct 2011
Location: Germany
Old 06-28-2014 , 16:44   Re: what's the difference between Plugin_Handled and Plugin_Stop?
Reply With Quote #2

These "variables" are currently defined like that in core.inc:
Click me

This and this has some related information on how these are used and/or expected to be used by sourcemod.
Short answer is that they simply "refer" to a different number.
__________________

Last edited by Impact123; 06-28-2014 at 17:20.
Impact123 is offline
rsdtt
Senior Member
Join Date: Oct 2009
Old 06-29-2014 , 02:14   Re: what's the difference between Plugin_Handled and Plugin_Stop?
Reply With Quote #3

Quote:
Originally Posted by Impact123 View Post
These "variables" are currently defined like that in core.inc:
Click me

This and this has some related information on how these are used and/or expected to be used by sourcemod.
Short answer is that they simply "refer" to a different number.
It seem like Plugin_Stop will stop all, and maybe Plugin_Handled would still work in other plugins
__________________
I am learning sm now
rsdtt is offline
rsdtt
Senior Member
Join Date: Oct 2009
Old 06-29-2014 , 02:16   Re: what's the difference between Plugin_Handled and Plugin_Stop?
Reply With Quote #4

maybe the point is "If the server command was created by a plugin, this has no effect."
__________________
I am learning sm now
rsdtt is offline
sheo
SourceMod Donor
Join Date: Jul 2013
Location: Russia, Moscow
Old 06-29-2014 , 05:47   Re: what's the difference between Plugin_Handled and Plugin_Stop?
Reply With Quote #5

It depends on the function. You can write a function that continues action if you return Plugin_Stop and blocks it if you return Plugin_Continue. Actually, its a simple number return. But the most plugins and sourcemod itself usually use Plugin_Stop/Handled for blocking the action, Plugin_Changed to override given values and Plugin_Continue to proceed with original action. Read the function`s description for more info.
__________________

Last edited by sheo; 06-29-2014 at 05:48.
sheo is offline
rsdtt
Senior Member
Join Date: Oct 2009
Old 06-29-2014 , 10:20   Re: what's the difference between Plugin_Handled and Plugin_Stop?
Reply With Quote #6

Quote:
Originally Posted by sheo View Post
It depends on the function. You can write a function that continues action if you return Plugin_Stop and blocks it if you return Plugin_Continue. Actually, its a simple number return. But the most plugins and sourcemod itself usually use Plugin_Stop/Handled for blocking the action, Plugin_Changed to override given values and Plugin_Continue to proceed with original action. Read the function`s description for more info.
OK, Thinks
__________________
I am learning sm now
rsdtt 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 15:15.


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