forward

CS_OnBuy

Syntax

forward CS_OnBuy(index, item);

Description

Called when a client purchases an item.

Parameters

index Client index
item Item id

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