For v22 NA client (standard private server client):
Code:
void (__cdecl *fSysWindow_Say)(char*, int, int) = reinterpret_cast
<void (__cdecl *)(char*, int, int)>
(0x004C1FC0);
void SysWindow_Say(char* message, int colour)
{
__asm {
PUSH 0
PUSH colour
PUSH 0x843A70
MOV EDI, message
CALL fSysWindow_Say }
}
void (__stdcall *ChatWindow_Say)(char*, char*, int) = reinterpret_cast
<void (__stdcall *)(char*, char*, int)> // (name, message, colour)
(0x004C1F20);
You can send text to the System Window (the one on the right) using something like:
Code:
SysWindow_Say("punks7yle is teh ghey", 7 /* green /*)
To write to the Chat Window (the one on the left), use:
Code:
ChatWindow_Say(0, "pupix is gheyer =3", 8 /* red */)
"colour" uses the same values as ingame colours do (
[Only registered and activated users can see links. Click Here To Register...])