Hm i compiled the usermessages (given with dota2) with the protoc compiler (See attachment)
Then i builded the
Protobuf lib and linked against it.
After that i added
PHP Code:
#include "usermessages.pb.h"
and finally added:
PHP Code:
#if defined GAME_CSGO
MRecipientFilter filter;
filter.AddAllPlayers();
CUserMsg_SayText text;
text.set_client((google::protobuf::uint32)pEntity);
text.set_chat(true);
text.set_text("WUI TESTING");
engine->SendUserMessage(filter, UM_SayText, text);
#endif
In the compiled proto files, there you have a enum of all Usermessages types, like here: UM_SayText