register_impulse
- Синтаксис
-
native register_impulse(impulse, const function[]);
Переменная | Описание |
---|---|
impulse |
Impulse to hook |
function |
Name of callback function |
- Описание
- Registers a function to be called on a client impulse.
- Пометка
-
The function will be called in the following manner: public impulse_handler(client, impulse) client - Client index impulse - Impulse triggered by the client
- Пометка
-
The callback should return PLUGIN_CONTINUE to ignore the impulse, PLUGIN_HANDLED or higher to nullify it (CmdStart() is not blocked).
- Пометка
-
When returning PLUGIN_HANDLED or higher from the callback, Engine will still fire other impulse functions. This includes the client_impulse() and client_cmdStart() forwards.
- Возвращает
- Impulse forward id