Raised This Month: $ Target: $400
 0% 

Problem with TE_PLAYERATTACHMENT


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Kiske
Veteran Member
Join Date: May 2009
Old 01-05-2013 , 21:18   Problem with TE_PLAYERATTACHMENT
Reply With Quote #1

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_UNRELIABLESVC_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_UNRELIABLESVC_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!

Last edited by Kiske; 01-05-2013 at 21:19.
Kiske is offline
Send a message via Skype™ to Kiske
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:36.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode