Raised This Month: $ Target: $400
 0% 

Just a Script Question


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Christy
Junior Member
Join Date: Jun 2004
Old 07-06-2004 , 15:55   Just a Script Question
Reply With Quote #1

could someone give me some info on PLUGIN_CONTINUE and PLUGIN_HANDLED like an example of when I should use one and not the other or what each does. Thanks
Christy is offline
BAILOPAN
Join Date: Jan 2004
Old 07-06-2004 , 16:03  
Reply With Quote #2

PLUGIN_CONTINUE means "no return code", or "procede normally"... it only works on "blocking functions", functions that have the ability to stop action from happening.

PLUGIN_HANDLED means "block further action".

example is like:
Code:
register_clcmd("say", "handle_say") public handle_say(id) {    return PLUGIN_HANDLED }

This will block anyone from saying anything, as it prevents the "say" command from being completed.
__________________
egg
BAILOPAN is offline
Reply


Thread Tools
Display Modes

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 14:39.


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