CS_OnBuy

Синтаксис

forward CS_OnBuy(index, item);

Употреба

index
Client index
item
Item id

Описание

Called when a client purchases an item.

Забележка

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.

Връщаща стойност

PLUGIN_CONTINUE to let the buy continue
PLUGIN_HANDLED to block the buy