AMX Mod X API Documentation

Signature
native menu_makecallback(const function[]);
Description

Creates a menu item callback handler.

Notes
  • The handler function should be prototyped as:

    public (id, menu, item)

    id - Client index being displayed to.

    menu - Menu resource identifier.

    item - Item being drawn.

    - ITEM_IGNORE to use the default functionality. ITEM_ENABLED to

    explicitly enable or ITEM_DISABLED to explicitly disable.

Parameters
  • function Function name.
Returns

Menu callback ID.

Назад
Верх