Hello, I have trouble putting a sprite on top of the head of a NPC
I pulled the following error: Bad client in R_AttachTentToPlayer()
PHP Code:
PHP Code:
g_npcSpr = precache_model("sprites/sexy.spr")
set_task( 2.0 , "npc_sprite" , g_npc , _ , _ , "b" )
}
public npc_sprite( ent )
{
message_begin( MSG_ALL , SVC_TEMPENTITY )
write_byte( 124 )
write_byte( ent )
write_coord( 65 )
write_short( g_npcSpr )
write_short( 32767 )
message_end()
}