Welcome to hackvshack.net Forum!
Download Free HvH CS2/CS:GO Cheats, CFG, LUA/JS Scripts, and More!
Register

C++ Function simple method for custom chat colors

sinepreggin

Rookie HvHer
User ID:
126625
Messages:
4
Reactions:
10
Badges:
3
REP:
−0/0+
Level:
19
C++:
Expand Collapse Copy
using chatcol_fn = const wchar_t*(__thiscall*)(int32_t);

chatcol_fn chatcol_og = nullptr;

client.dll -> 53 8B D9 85 DB 79 11

const wchar_t*  __fastcall hkchatcolor(int32_t color_index, int32_t chat_type){

    if (color_index == 0xE && chat_type == 0) {

        static const wchar_t color[] = L"#282828";

        return color;

    }

    if(color_index == 0x0F && chat_type == 0){

        static const wchar_t color[] = L"#808080";

        return color;

    }

    return chatcol_og;

}

just use some random unused colors that no cares about and replace them
here is how to use it
C++:
Expand Collapse Copy
chat_print_f("Loaded %s%s%s%s", "\xE", config_names, "\x0F", " config");
1773077568902.png
this was more of a POC
 
Last edited by a moderator:
C++:
Expand Collapse Copy
using chatcol_fn = const wchar_t*(__thiscall*)(int32_t);

chatcol_fn chatcol_og = nullptr;

client.dll -> 53 8B D9 85 DB 79 11

const wchar_t*  __fastcall hkchatcolor(int32_t color_index, int32_t chat_type){

    if (color_index == 0xE && chat_type == 0) {

        static const wchar_t color[] = L"#282828";

        return color;

    }

    if(color_index == 0x0F && chat_type == 0){

        static const wchar_t color[] = L"#808080";

        return color;

    }

    return chatcol_og;

}

just use some random unused colors that no cares about and replace them
here is how to use it
C++:
Expand Collapse Copy
chat_print_f("Loaded %s%s%s%s", "\xE", config_names, "\x0F", " config");
1773077568902.png
this was more of a POC
The GOAT Of All Time
 

Who has read this thread (Total: 0) in last 1 hours View details