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