AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Just a Script Question (https://forums.alliedmods.net/showthread.php?t=3432)

Christy 07-06-2004 15:55

Just a Script Question
 
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

BAILOPAN 07-06-2004 16:03

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.


All times are GMT -4. The time now is 14:39.

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