He wants to set scale/frame of the sprite entity that is above player head, you said to use TE_PLAYERATTACHMENT and pev_scale/pev_frame and i'm asking how is it possible to use both together.
Is he creating an entity? Then he can use find_ent_by_class on the entity?