can bombası fırlatmayı kaldırıp hem sol tık hem sag tıkta can bombası içme yapmak mumkunmu,mumkunse yardım edebılırmısınız?
Discord : mejaxx Steam : mejaxbey
)

public CBasePlayer_ThrowGrenade_Pre(const id, const item, const Float:vecSrc[3], const Float:vecThrow[3], const Float:time, const const usEvent) {
if (!FClassnameIs(item, ITEM_CLASSNAME)) {
return HC_CONTINUE;
}
new weapon = get_entvar(id, var_activeitem);
if(!is_entity(weapon) || !FClassnameIs(weapon, ITEM_CLASSNAME)) {
return HC_CONTINUE;
}
new iBpAmmo = get_member(id, m_rgAmmo, AMMO_ID);
if(!iBpAmmo) {
return HC_CONTINUE;
}
if(Float:get_entvar(id, var_health) >= Float:get_entvar(id, var_max_health)) {
#if defined FULL_HP_MSG
client_print(id, print_center, FULL_HP_MSG);
#endif
return HC_CONTINUE;
}
const Float:fAnimTime = 3.15;
set_member(weapon, m_Weapon_flTimeWeaponIdle, fAnimTime);
set_member(weapon, m_Weapon_flNextPrimaryAttack, fAnimTime);
set_member(weapon, m_Weapon_flNextSecondaryAttack, fAnimTime);
SendWeaponAnimation(id, HG_ANIMATION_DRINK);
ExecuteHamB(Ham_TakeHealth, id, HEAL_AMOUNT_DRINK, DMG_GENERIC);
set_member(id, m_rgAmmo, iBpAmmo - 1, AMMO_ID);
message_begin(MSG_ONE, MsgIdScreenFade, _, id);
write_short(1<<10);
write_short(1<<10);
write_short(0x0000);
write_byte(0);
write_byte(200);
write_byte(0);
write_byte(90);
message_end();
return HC_SUPERCEDE;
}(27-09-2025, 16:33)osmanbnm Adlı Kullanıcıdan Alıntı:tam olarak nereleri duzeltıcegim peki?ilgili kodları değiştir sorun çözülür diye tahmin ediyorum.Kod:public CBasePlayer_ThrowGrenade_Pre(const id, const item, const Float:vecSrc[3], const Float:vecThrow[3], const Float:time, const const usEvent) {
if (!FClassnameIs(item, ITEM_CLASSNAME)) {
return HC_CONTINUE;
}
new weapon = get_entvar(id, var_activeitem);
if(!is_entity(weapon) || !FClassnameIs(weapon, ITEM_CLASSNAME)) {
return HC_CONTINUE;
}
new iBpAmmo = get_member(id, m_rgAmmo, AMMO_ID);
if(!iBpAmmo) {
return HC_CONTINUE;
}
if(Float:get_entvar(id, var_health) >= Float:get_entvar(id, var_max_health)) {
#if defined FULL_HP_MSG
client_print(id, print_center, FULL_HP_MSG);
#endif
return HC_CONTINUE;
}
const Float:fAnimTime = 3.15;
set_member(weapon, m_Weapon_flTimeWeaponIdle, fAnimTime);
set_member(weapon, m_Weapon_flNextPrimaryAttack, fAnimTime);
set_member(weapon, m_Weapon_flNextSecondaryAttack, fAnimTime);
SendWeaponAnimation(id, HG_ANIMATION_DRINK);
ExecuteHamB(Ham_TakeHealth, id, HEAL_AMOUNT_DRINK, DMG_GENERIC);
set_member(id, m_rgAmmo, iBpAmmo - 1, AMMO_ID);
message_begin(MSG_ONE, MsgIdScreenFade, _, id);
write_short(1<<10);
write_short(1<<10);
write_short(0x0000);
write_byte(0);
write_byte(200);
write_byte(0);
write_byte(90);
message_end();
return HC_SUPERCEDE;
}
}
public CBasePlayer_ThrowGrenade_Pre(const id, const item, const Float:vecSrc[3], const Float:vecThrow[3], const Float:time, const const usEvent) {
if (!FClassnameIs(item, ITEM_CLASSNAME)) {
return HC_CONTINUE;
}
new grenade = throwNade(id, vecSrc, vecThrow, time);
SetHookChainReturn(ATYPE_INTEGER, grenade);
return HC_SUPERCEDE;
}(27-09-2025, 16:38)osmanbnm Adlı Kullanıcıdan Alıntı:bende hangı kodu ekleyecegım degistirecegmi bılmıyorum zaten,oyuzden soruyorumKod:}
public CBasePlayer_ThrowGrenade_Pre(const id, const item, const Float:vecSrc[3], const Float:vecThrow[3], const Float:time, const const usEvent) {
if (!FClassnameIs(item, ITEM_CLASSNAME)) {
return HC_CONTINUE;
}
new grenade = throwNade(id, vecSrc, vecThrow, time);
SetHookChainReturn(ATYPE_INTEGER, grenade);
return HC_SUPERCEDE;
}
eklenti içerisinde böyle bir bölüm var burasını yeni kodlar ile değiştirmen gerekiyor.
(27-09-2025, 16:46)mejaxamaa Adlı Kullanıcıdan Alıntı:(27-09-2025, 16:38)osmanbnm Adlı Kullanıcıdan Alıntı:bende hangı kodu ekleyecegım degistirecegmi bılmıyorum zaten,oyuzden soruyorumKod:}
public CBasePlayer_ThrowGrenade_Pre(const id, const item, const Float:vecSrc[3], const Float:vecThrow[3], const Float:time, const const usEvent) {
if (!FClassnameIs(item, ITEM_CLASSNAME)) {
return HC_CONTINUE;
}
new grenade = throwNade(id, vecSrc, vecThrow, time);
SetHookChainReturn(ATYPE_INTEGER, grenade);
return HC_SUPERCEDE;
}
eklenti içerisinde böyle bir bölüm var burasını yeni kodlar ile değiştirmen gerekiyor.
https://www.webailesi.com/ds-reapi-healthnade-16806.sma
linkteki eklentiyi dener misin ?
(27-09-2025, 17:00)mejaxamaa Adlı Kullanıcıdan Alıntı: sol tıkta fırlatma anımasyonu yapıyor,ama sadece anımasyon yapıp bomba elımden gıdıyor bisey olmuyor.
(27-09-2025, 17:14)mejaxamaa Adlı Kullanıcıdan Alıntı: kanki yine aynı hata sol tıkta fırlatıyor.