View Single Post
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 09-13-2018 , 15:55   Re: Problem in Explode Balrog1 Damge ( HELP )
Reply With Quote #4

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 && != id
            { 
                
ExecuteHamBHam_TakeDamage,id ,idget_pcvar_float(cvar_dmg_exp), DMG_BULLET 
            } 
            } 
    } 

__________________
My plugin:
Celena Luna is offline