aha your trying to make the sprite stay above the player, heres some example code from my speedrun plugin, i made it so a little clock with the hand that moves round appears abover their heads
Code:
new SpeedSprite //global <<
public plugin_precache()
SpeedSprite = precache_model("sprites/fm/speedrunclock.spr")
// then to attach the sprite to a player
message_begin(MSG_ALL,SVC_TEMPENTITY)
write_byte(124)
write_byte(id) // attach to player
write_coord(65) // offset on the Z axis
write_short(SpeedSprite) //sprite
write_short(32767) // time, i believe this is the max time you can use
message_end()
// and if you want to remove it
message_begin(MSG_ALL,SVC_TEMPENTITY)
write_byte(125)
write_byte(id)
message_end()
with this you cant render sprites additivly aka the black bits will show. If you want to create transparency you have to create a sprite and render it alphatest, where the last colour in the pallete is the transparency colour. usually pure blue
__________________