rollraw / qo0-csgo

internal cs:go cheat base/template
https://www.unknowncheats.me/forum/cs-go-releases/585900-v2-qo0s-internal-cheat-base-template.html
MIT License
333 stars 101 forks source link

[Question] sendnetmsg #100

Closed ghost closed 3 years ago

ghost commented 3 years ago

so first of all ur base is amazing, keep going! im just wondering am i doing something wrong or its something wrong with the SendNetMsg hook i used the method of doing Force Spectator Mode mentioned by Flaww https://www.unknowncheats.me/forum/counterstrike-global-offensive/383464-spectate-own-mm-game-live.html i had to add NET_StringCmd class because i was not able to find this in the base.

// @credits: Flaww
if (pMessage->GetType() == INetChannelInfo::STRINGCMD && C::Get<bool>(Vars.bMiscForceSpectatorExploit))
{
    auto cmd = reinterpret_cast<NET_StringCmd*>(pMessage);

    if (strstr(cmd->m_szCommand, "joingame"))
        return true;
}

is something wrong with this code?

rollraw commented 3 years ago

debug, check does it passing, log which type message there's used

ghost commented 3 years ago

aight looks like it is something wrong with the NET_StringCmd class

rollraw commented 3 years ago

u can do this other way by clientstate