Try with TE_BEAMFOLLOW:
PHP Code:
new const EntityName[] = "flame";
new const Mdl[] = "models/bullet.mdl";
new Sprite;
public plugin_precache()
{
Sprite = precache_model("sprites/flame.spr");
}
CreateFlame()
{
new iEnt = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString));
set_pev(iEnt, pev_classname, EntityName);
engfunc(EngFunc_SetModel, iEnt, Mdl);
message_begin(MSG_BROADCAST, SVC_TEMPENTITY);
write_byte(TE_BEAMFOLLOW);
write_short(iEnt);
write_short(Sprite);
write_byte(10);
write_byte(5);
write_byte(255);
write_byte(255);
write_byte(255);
write_byte(200);
message_end();
}
__________________