How works Team_Info?
Help please. I can't understand how works Team_Info. When I send message to all players after setting TeamInfo to Terrorist then sometimes players receives message with blue text.
How correctly to change TeamInfo? message_begin(MSG_ONE,get_user_msgid("TeamInf o"),_,id); write_byte(id); //what here to write? write_string("TERRORIST"); message_end(); i can't understand differing MSG_ALL from MSG_ONE and differing "id" in message_begin from "id" in write_byte. |
Re: How works Team_Info?
Somebody can explain this differences?
|
Re: How works Team_Info?
MSG_ALL or MSG_BROADCAST will sent the message for all connected players.
MSG_ONE or MSG_UNRELIABLE will sent the message only for the player's id provided in message_begin(). The first write_byte() is to specify the player's id you want to change teaminfo. |
Re: How works Team_Info?
arkshine
Thank you. I have experimented with a code (below) and have understood because of what there was a problem: Code:
message_begin(MSG_ALL, get_user_msgid("TeamInfo"));Code:
message_begin(MSG_ALL, get_user_msgid("TeamInfo"));otherwise player1 will receive message with initial team colour of player2. In this case its necessary to use each time TeamInfo on each player :(. |
| All times are GMT -4. The time now is 01:33. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.