Posts: 3,934
Threads: 353
Joined: Jan 2010
Reputation:
0
Hey, i've set up my own Textdraw screen for when a player connects, i've already set them to spectate so the buttons are removed but I need to know how I can disable the chat while they're logging in or registering. When they spawn, the chat would re-appear.
Thanks.
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
Just send 20 empty messages? If the player has timestamps enabled, then you won't be able to influence that, however.
Posts: 7,801
Threads: 187
Joined: Feb 2010
Reputation:
0
I don't believe you can, since there's no function to do this and I don't believe text-draws over-top of the chat actually cover it or anything.
The best thing you could do is make it so they don't receive any chat messages until they spawn. I re-wrote the SendClientMessageForAll function (well, wrote a version of it) that checks a few things before it sends it to everyone on the server- one of the checks was to see the player was spawned.
Otherwise, you could just clear their chat every second or two like the two posters above me said.
Posts: 3,934
Threads: 353
Joined: Jan 2010
Reputation:
0
Ah, yes! Why didn't I think of clearing the chat! Thanks everyone.