|
Member
|
09-15-2018
, 09:00
Re: Problem in Explode Balrog1 Damge ( HELP )
|
#5
|
Quote:
Originally Posted by Celena Luna
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 && a != id)
{
ExecuteHamB( Ham_TakeDamage, a ,id ,id, get_pcvar_float(cvar_dmg_exp), DMG_BULLET )
}
}
}
}
|
Thank you For Help Me it Work <3
|
|
|
|