Участник
Пользователь
- Сообщения
- 282
- Реакции
- 34
- Помог
- 3 раз(а)
Does anyone have an idea how to change this code to not throw errors if custom grenade exists (healthnade, decoy, molotov...):
Код:
public get_grenade_race(grenade)
{
switch (cs_get_weapon_id(grenade))
{
case CSW_HEGRENADE: return _:GRENADE_EXPLOSIVE
case CSW_FLASHBANG: return _:GRENADE_FLASHBANG
case CSW_SMOKEGRENADE: return _:GRENADE_SMOKEGREN
}
return -1
}