Участник
Пользователь
- Сообщения
- 278
- Реакции
- 137
Hello,
I want deagle to reload after each firing. It works but I wonder if there is better way or not.
I want deagle to reload after each firing. It works but I wonder if there is better way or not.
Код:
RegisterHam(Ham_Weapon_PrimaryAttack, "weapon_deagle", "@Ham_Weapon_PrimaryAttack_Deagle", .Post=true);
RegisterHam(Ham_Weapon_Reload, "weapon_deagle", "@Ham_Weapon_Reload_Deagle", .Post=true);
@Ham_Weapon_PrimaryAttack_Deagle(const weapon)
{
new id = get_member(weapon, m_pPlayer);
rg_set_user_ammo(id, WEAPON_DEAGLE, 0);
}
@Ham_Weapon_Reload_Deagle(const weapon)
{
new id = get_member(weapon, m_pPlayer);
rg_set_user_bpammo(id, WEAPON_DEAGLE, 30);
}