Raised This Month: $ Target: $400
 0% 

Showing the sprite just for the own team


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
bibu
Veteran Member
Join Date: Sep 2010
Old 01-27-2012 , 18:47   Re: Showing the sprite just for the own team
Reply With Quote #1

Quote:
Originally Posted by Hunter-Digital View Post
Just use MSG_ONE/MSG_ONE_UNRELIABLE and send it to every player from that team, only they would see that attachment since it's a message, not an actual entity attachment.

For entitiy attachments you need to use addtofullpack to pick who can see them.
So I tried todo that again, but I failed.

This should only be seeable for those who are in the team of the target (this shows it for everyone on the server):

PHP Code:
    message_beginMSG_ALLSVC_TEMPENTITY );
        
write_byteTE_PLAYERATTACHMENT );
        
write_bytetarget );
        
write_coord45 );
        
write_short(g_szSprite); 
        
write_short(20);
        
message_end(); 
With
PHP Code:
MSG_ONE_UNRELIABLE 
it crashes.
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.

Last edited by bibu; 01-27-2012 at 18:47.
bibu is offline
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 01-28-2012 , 09:11   Re: Showing the sprite just for the own team
Reply With Quote #2

It crashes, but you didn't say why... I *assume* that it's because you don't tell the code who to send the message to.

Code:
message_begin(MSG_ONE_UNRELIABLE, SVC_TEMPENTITY, _, player)
__________________
Hunter-Digital is offline
Reply



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 00:47.


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