View Single Post
Author Message
FonixPro20
Member
Join Date: Mar 2018
Old 09-13-2018 , 13:44   Problem in Explode Balrog1 Damge ( HELP )
Reply With Quote #1

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_BROADCASTSVC_TEMPENTITY)
            
write_byte(TE_EXPLOSION)
            
engfunc(EngFunc_WriteCoordoriginF[0])
            
engfunc(EngFunc_WriteCoordoriginF[1])
            
engfunc(EngFunc_WriteCoordoriginF[2])
            
write_short(sExplo)
            
write_byte(20)
            
write_byte(50)
            
write_byte(0)
            
message_end()
            new 
FM_NULLENT
            
while((find_ent_in_sphere(a,originF,200.0)) != 0)
            {
            if(
pev(a,pev_takedamage)!=DAMAGE_NO)
            {
                
ExecuteHamBHam_TakeDamage,id ,idget_pcvar_float(cvar_dmg_exp), DMG_BULLET )
            }
            }
    }

FonixPro20 is offline