cs_get_user_weapon
- Синтаксис
-
native cs_get_user_weapon(playerIndex, &clip = 0, &ammo = 0);
Переменная | Описание |
---|---|
playerIndex |
Player index |
clip |
Optional variable to store clip ammo to |
ammo |
Optional variable to store backpack ammo to |
- Описание
- Returns weapon index of the active weapon.
- Пометка
-
More reliable than get_user_weapon.
- Возвращает
- Weapon index on success or 0 if there is no active weapon