Something like this?:
Code:
public test(id){
new Float:vOrigin[3]; //get my origin
entity_get_vector( id, EV_VEC_origin, vOrigin );
new Radius = 100.0
while((ent = find_ent_in_sphere(id, vOrigin, Radius)) != 0)
{
if(!is_user_alive(ent) || ent == id)
{
return 0
}
else
{
//Do the stuff if a player was found
explosion(ent) // create an explosion on each found entity.
}
}
}
public explosion (id){
new startloc[3]
get_user_origin(id,startloc)
message_begin( MSG_ALL, get_user_msgid("Explosion"), {0,0,0} ,id);
write_coord(startloc[0])
write_coord(startloc[1])
write_coord(startloc[2])
write_long(500)
write_byte(5)
message_end()
}