Hello Guys i found problem shoting somone with balrog-1 Damge kill
How i can remove damge from the player use weapon ( CT , T )
Thanks For Help !!
PHP Code:
public explode(id)
{
if(is_user_alive(id))
{
new Float:originF[3]
fm_get_aim_origin(id,originF)
message_begin(MSG_BROADCAST, SVC_TEMPENTITY)
write_byte(TE_EXPLOSION)
engfunc(EngFunc_WriteCoord, originF[0])
engfunc(EngFunc_WriteCoord, originF[1])
engfunc(EngFunc_WriteCoord, originF[2])
write_short(sExplo)
write_byte(20)
write_byte(50)
write_byte(0)
message_end()
new a = FM_NULLENT
while((a = find_ent_in_sphere(a,originF,200.0)) != 0)
{
if(pev(a,pev_takedamage)!=DAMAGE_NO)
{
ExecuteHamB( Ham_TakeDamage, a ,id ,id, get_pcvar_float(cvar_dmg_exp), DMG_BULLET )
}
}
}
}