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"));
write_byte(2);
write_string("CT");
message_end();
message_begin(MSG_ONE,get_user_msgid("SayText"),_,1);
write_byte(2);
write_string("^x03hello^x01"); // Message will be with blue colour text
message_end();
message_begin(MSG_ALL, get_user_msgid("TeamInfo"));
write_byte(2);
if (team==1) write_string("TERRORIST");
else write_string("CT");
message_end();
If to use
Code:
message_begin(MSG_ALL, get_user_msgid("TeamInfo"));
then necessary to send message "^x03hello^x01" with type MSG_ALL
otherwise player1 will receive message with initial team colour of player2.
In this case its necessary to use each time TeamInfo on each player
.