Quick Question
#1

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.
Reply
#2

Just send 20 empty messages? If the player has timestamps enabled, then you won't be able to influence that, however.
Reply
#3

This is how to clear the chat
pawn Код:
for(new i = 0; i < 11; i++) SendClientMessage(playerid,-1," ");
Maybe make a running timer that keeps clearing it each 1000 ms till class section.
Reply
#4

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.
Reply
#5

Ah, yes! Why didn't I think of clearing the chat! Thanks everyone.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)