example.. but sprites can't go through thea wall,roof..
it's real to get over head(roof,wall,ceiling,model..) coordinats[distance]?

[sorry for my ban english..]
PHP Code:
#include <amxmodx>
#include <amxmisc>
#define TE_SPRAY 120
new g_sFire;
public plugin_init()
{
register_plugin( "fire_ball", "1.0", "-=ThQ=-" );
register_clcmd( "xxa","go_fire");
}
public plugin_precache()
{
g_sFire = precache_model("sprites/explode1.spr");
}
public go_fire(id,lvl,cid)
{
if( cmd_access( id, lvl, cid, 1 ) )
{
new parm[3];
get_user_origin(id,parm);
set_task(5.0,"xxa2",id,parm,3);
}
return PLUGIN_HANDLED;
}
public xxa2(parm[3])
{
new origins2[3];
parm[2]+=200;
origins2[0]=(random_num(-4,4));
origins2[1]=(random_num(-4,4));
origins2[2]=-8;
Create_TE_SPRAY(parm, origins2, g_sFire, 7, 70, 100, 5);
}
stock Create_TE_SPRAY(position[3], direction[3], iSprite, count, speed, noise, rendermode){
message_begin( MSG_BROADCAST,SVC_TEMPENTITY )
write_byte( TE_SPRAY )
write_coord( position[0] ) // Position
write_coord( position[1] )
write_coord( position[2] )
write_coord( direction[0] ) // Direction
write_coord( direction[1] )
write_coord( direction[2] )
write_short( iSprite ) // Sprite
write_byte( count ) // count
write_byte( speed ) // speed
write_byte( noise ) // noise
write_byte( rendermode ) // rendermode
message_end()
}