Send private messages?

Posted by Freeko
I'm trying that friends in my game can send private messages in chat, but I don't know how to make it. I do not know if using gms_p2p_send I can create such a system.

Replies (3)

Last message on 3 Jun 2016

Freeko (Topicstarter) on 3 Jun 2016, 20:25:29
Thanks for the help rater193 and Size43! :)
And I managed to create the private messaging system.
Size43 (Administrator) on 29 May 2016, 12:33:14
I believe you can use @username: to send messages to friends (even across multiple games). If you need something more customizable, you should go with what rater193 suggested.
rater193 on 27 May 2016, 02:06:33
for private messages, just use p2p_send to a specific player ID(if they are online) with a message to be said in chat, then make the p2p script show the message with something like gms_chat("[PM-"+string(playername)+"] "+string(message))