PHP Code:
static ent
ent = create_entity("info_target")
if(ent)
{
entity_set_string(ent,EV_SZ_classname,"info_sprite") // entity classname, put what you want here or leave it info_sprite...
entity_set_model(ent,"sprites/....spr") // path to the sprite
entity_set_int(ent,EV_INT_solid,SOLID_NOT) // not solid
entity_set_int(ent,EV_INT_movetype,MOVETYPE_NONE) // don't move
set_rendering(ent, kRenderFxNoDissipation, 0,0,0, kRenderGlow, 255) // put this to remove the black background of the sprite
entity_set_origin(ent,Float:{0.0,0.0,0.0}) // put your origin here : Float:{X , Y , Z}
}
Something like this, requires engine module.
You should also precache the sprite.
__________________