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
argument3: The chat tag. (see
gms_chat_ext)
Example
//Sets script scr_receivechat to be executed when receiving chat messages.
gms_script_set_chat_receive(scr_receivechat)