gms_script_set_chat_receive

Usage: gms_script_set_chat_receive ( script_id )

Description

Sets the script that should be executed when receiving a chat message.

The script should take 3 arguments:
argument0: Sender's player_id
argument1: Contents of chat message
argument2: Color of chat message

Example

//Sets script scr_receivechat to be executed when receiving chat messages.
gms_script_set_chat_receive(scr_receivechat)

Replies (0)

Last message on 28 Jul 2017