gms_chat

Usage: gms_chat ( text, color )

Description

Sends the message 'text' with the color 'color' to all other players.

Replies (8)

Last message on 22 May 2022

TehAwesomestKitteh on 19 Jan 2019, 21:39:20
Is there a way to cancel/clear a chat message, since I don't see something in the documentation that does that. The idea is basically to trigger gms_chat_toggle(false) when vk_escape is pressed and clear the textbox of anything the user was currently typing.
Size43 (Administrator) on 27 Jan 2019, 15:02:25
I believe the chat just uses keyboard_string, so clearing that should work. If not, let me know and I'll dive into the code to figure it out.
Killuado on 19 Jan 2019, 14:15:56
will have some update to have an bubble chat? i would love to ;p
Size43 (Administrator) on 27 Jan 2019, 15:01:40
I have nothing planned, but I will keep this in mind.
bruno_chachi on 3 Jun 2018, 22:11:47
I use chat for send messages like "@user kill @user", but SERVER mute players, how can I cancel the mute permanently?
Size43 (Administrator) on 27 Jan 2019, 15:01:14
Apologies, looks like I missed this one.

You should use P2P messages and then gms_chat_local to send non-user messages.
Dublann on 2 Apr 2017, 20:26:31
Hi size!

Im having 2 chats, one general and another that depends on the unlockled level. The chat of the level, is created in different types of sessions, therefore, other player that dont belong to the session cant see the messages. The problem that Im having is that the player that send the message in the general chat, can see it in the chat of the level, and the message sent in the chat of the level is also written in the general chat, altought it is not sent to the other players.

How could I avoid seeing the messages from one chat in the other chat? I have tried several things but i dont figure out how to do it.

Thx!
Size43 (Administrator) on 16 Apr 2017, 16:23:52
The only way to do this would be to clear the chat each time you switch. In order to clear the chat, ds_list_clear the following lists: global.__chattime, global.__chattext, global.__chatcol, global.__chatsender, global.__chatsendername.