Raised This Month: $ Target: $400
 0% 

AddToFullPack set_es() for player team?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
MeRcyLeZZ
Veteran Member
Join Date: Dec 2007
Old 03-16-2009 , 23:18   Re: AddToFullPack set_es() for player team?
Reply With Quote #6

Quote:
Originally Posted by .Owyn.
looks like working but server still sends correct information about player team =\
If you want this for CS, you should instead send a TeamInfo message like this:
Code:
message_begin( MSG_BROADCAST, get_user_msgid("TeamInfo") ) write_byte( 5 ) // player index write_string( "CT" ) // team: "UNASSIGNED", "TERRORIST", "CT", or "SPECTATOR" message_end( )

Note that the actual player's team will not be changed. For that you have to set the corresponding offset ( set_pdata_int( id, 114, team ) ).

Also, you can use the destination MSG_ALL if you want the team message to be reliable (i.e. always arrive to clients). Be careful about sending too many reliable messages at once though: you can easily overflow clients or even crash the server!
__________________
MeRcyLeZZ is offline
 



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 08:50.


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