AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   PLUGIN_HANDLED || PLUGIN_CONTINUE (https://forums.alliedmods.net/showthread.php?t=162588)

sake 07-20-2011 18:11

PLUGIN_HANDLED || PLUGIN_CONTINUE
 
Hello there,

http://www.amxmodx.org/doc/index.htm...%2Fscripts.htm

I've already read this through but I don't really get the difference when I have to use HANDLED and when to use CONTINUE. Does it even matter in most cases?

kind regards

sake

nikhilgupta345 07-20-2011 18:13

Re: PLUGIN_HANDLED || PLUGIN_CONTINUE
 
//Plugin passes through operation. Whatever called it continues.
#define PLUGIN_CONTINUE 0
//Plugin halts continued operation (plugins following in the plugins.ini won't be called).
//Whatever called it will eventually supercede.
#define PLUGIN_HANDLED 1
//Continue calling plugins but halt the operation
#define PLUGIN_HANDLED_MAIN 2

sake 07-20-2011 18:19

Re: PLUGIN_HANDLED || PLUGIN_CONTINUE
 
Thanks.

And while I have this thread open: How can i prevent the message "Press CTRL to enter Spectator menu" from appearing?

yokomo 07-21-2011 08:45

Re: PLUGIN_HANDLED || PLUGIN_CONTINUE
 
Quote:

Originally Posted by sake (Post 1514882)
Thanks.

And while I have this thread open: How can i prevent the message "Press CTRL to enter Spectator menu" from appearing?

You can block dhudmessage using this plugin http://forums.alliedmods.net/showthread.php?p=832880

sake 07-21-2011 09:55

Re: PLUGIN_HANDLED || PLUGIN_CONTINUE
 
Hmmm. Doesn't seem to work under my AMXX Version. Which Version should I have?

jim_yang 07-21-2011 10:43

Re: PLUGIN_HANDLED || PLUGIN_CONTINUE
 
That message is sent by client, it doesn't come from server, so you can't block it at serverside.


All times are GMT -4. The time now is 01:07.

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