Hi,
Only works when the ID see FRIEND and FRIEND see ID.
If ID see to FRIEND but FRIEND not see ID, ID see sprite in FRIEND but FRIEND not see sprite in ID.
PHP Code:
if(is_user_alive(FRIEND))
{
message_begin(MSG_ONE_UNRELIABLE, SVC_TEMPENTITY, _, ID);
write_byte(TE_PLAYERATTACHMENT);
write_byte(FRIEND);
write_coord(25);
write_short(g_torc_sprite);
write_short(32767);
message_end();
}
if(is_user_alive(ID))
{
message_begin(MSG_ONE_UNRELIABLE, SVC_TEMPENTITY, _, FRIEND);
write_byte(TE_PLAYERATTACHMENT);
write_byte(ID);
write_coord(25);
write_short(g_torc_sprite);
write_short(32767);
message_end();
}
I test with MSG_ONE and the result is the same.
Thanks in advanced!