AMX Mod X API Documentation

Signature
native register_impulse(impulse, const function[]);
Description

Registers a function to be called on a client impulse.

Notes
  • 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.

Parameters
  • impulse Impulse to hook
  • function Name of callback function
Returns

Impulse forward id

Назад
Верх