The online racing simulator
How to detect system messages?
Hello. Im using LFS External. The problem is, i didn't found any messages tracking packet except MSO. And, how this would work? Ex. message: "roki60 does not have a car", i want to track this message and show button at the center with the text: "Please reselect the car". Thanks.
struct IS_MSO // MSg Out - system messages and user messages
{
byte Size; // 136
byte Type; // ISP_MSO
byte ReqI; // 0
byte Zero;

byte UCID; // connection's unique id (0 = host)
byte PLID; // player's unique id (if zero, use UCID)
byte UserType; // set if typed by a user (see User Values below)
byte TextStart; // first character of the actual text (after player name)

char Msg[128];
};

// User Values (for UserType byte)

enum
{
MSO_SYSTEM, // 0 - system message
MSO_USER, // 1 - normal visible user message
MSO_PREFIX, // 2 - hidden message starting with special prefix (see ISI)
MSO_O, // 3 - hidden message typed on local pc with /o command
MSO_NUM
};

System messages are sent as an MSO packet with the UserType field set to MSO_SYSTEM.

FGED GREDG RDFGDR GSFDG