CS_OnBuyAttempt
- Синтаксис
-
forward CS_OnBuyAttempt(index, item);
Переменная | Описание |
---|---|
index |
Client index |
item |
Item id |
- Описание
- Called when a client attempts to purchase an item.
- Пометка
-
This is called immediately when the client issues a buy command. The game has not yet checked if the client can actually buy the weapon.
- Пометка
-
For a list of possible item ids see the CSI_* constants.
- Возвращает
- PLUGIN_CONTINUE to let the buy attempt continue PLUGIN_HANDLED to block the buy attempt