Do not work...
PHP Code:
new sprite;
public plugin_precache( )
sprite = precache_model( "sprites/party_spr.spr" ) // I also tested with precache_generic
public party_sprite( id, partyid )
{
if( !is_user_connected( id ) || !is_user_connected( partyid ) )
return;
message_begin( MSG_ONE_UNRELIABLE, SVC_TEMPENTITY, _, id );
write_byte( TE_PLAYERATTACHMENT );
write_byte( partyid );
write_coord( 1 );
write_short( sprite );
write_short( 99999 );
message_end( );
message_begin( MSG_ONE_UNRELIABLE, SVC_TEMPENTITY, _, partyid );
write_byte( TE_PLAYERATTACHMENT );
write_byte( id );
write_coord( 1 );
write_short( sprite );
write_short( 99999 );
message_end( );
}
__________________