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