[resolved] read_data, write_string(), etc.
I want to check if the player is on the team zombiemodel, and if so, switch the player to team humanmodel. TeamInfo is the event, in The Specialists, that gets called when a client switches teams.
I am trying to send the message TeamInfo to the client so that the client's team is switched back to the team humanmodel. The client_print message is sent, so I'm assuming I set everything up correctly, besides the sending of the message. I know there are a bunch of threads on this, and I've looked at many of them, but I just couldn't find an answer for this. The documentation didn't help either. Here's two versions attempting to achieve the same result: This version does nothing as far as I can tell: Code:
This version at least sends the print_chat message "You are a human!": Code:
|
Re: read_data, write_string(), etc.
TeamInfo is probably a global message, so register it with the a flag instead of b.
|
Re: read_data, write_string(), etc.
You're right, according to the message logger by Damaged Soul its destination is ALL.
Forgot about that. I'm checking the first code with flag a instead of b right now... EDIT: Changing to flag a instead of b did nothing. |
Re: read_data, write_string(), etc.
try to set the user team with set_user_info
|
Re: read_data, write_string(), etc.
Thank you Greenberet.
Working code: Code:
|
| All times are GMT -4. The time now is 04:53. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.