Man, I sware there was a topic just like this like a month ago, but I can't find it. If anyone knows where it is, please link it.
Anyway, for something this complex, you will have to hook AddToFullPack. There are two parameters that will guide you in that hook - ent, and host. Host is the viewer, and ent is who is being viewed.
Make sure you check that the arg "player" is true.
It'll look something like this...
Code:
public plugin_init() {
register_forward( FM_AddToFullPack, "hook_AddToFullPack_post", 1 );
}
public hook_AddToFullPack_post( es_handle,e,ent,host,hostflags,player,pSet ) {
if( !player ) return FMRES_IGNORED;
if( host == person you want to be viewing && ent == person you want to be viewed )
{
// Make him glow...you can do this more proficiently with set_es()
}
return FMRES_IGNORED;
}
__________________