AMX Mod X API Documentation

Signature
forward CS_OnBuy(index, item);
Description

Called when a client purchases an item.

Notes
  • This is called right before the user receives the item and before the

    money is deducted from their cash reserves.

  • For a list of possible item ids see the CSI_* constants.
Parameters
  • index Client index
  • item Item id
Returns

PLUGIN_CONTINUE to let the buy continue

PLUGIN_HANDLED to block the buy

Назад
Верх