CS_OnBuy

Syntax

forward CS_OnBuy(index, item);

Usage

index
Client index
item
Item id

Description

Called when a client purchases an item.

Note

This is called right before the user receives the item and before the
money is deducted from their cash reserves.

Note

For a list of possible item ids see the CSI_* constants.

Return

PLUGIN_CONTINUE to let the buy continue
PLUGIN_HANDLED to block the buy