 |
|
Veteran Member
Join Date: Jul 2006
Location: France (95)
|

11-10-2013
, 06:19
Re: First plugin, need feedback
|
#9
|
Some forwards can be blocked (client_command, ...) some can not be blocked (plugin_init, client_connect ...)
Event (callbacks from register_event) can not be blocked
Commands (register_clcmd, register_concmd) can be blocked
Menus (register_menu) can be blocked
Things that can't be blocked don't need returns values, if you need to exit functions, just use 'return' with no value.
In things that can be blocked, you should use return values, though when you don't return any value, PLUGIN_CONTINUE is assumed.
On specific modules (hamsandwich and fakemate) functions hooks, you need to use specific modules return values (HAM_IGNORED, HAM_HANDLED, HAM_OVERRIDE, HAM_SUPERCEDE, FMRED_IGNORED, FMRED_HANDLED, FMRED_OVERRIDE, FMRED_SUPERCEDE)
__________________
|
|
|
|