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

C++ How to control your cheat users trough chat [CSGO/CSGO 2018]

  • Thread starter Thread starter aether
  • Start date Start date

aether

Rookie HvHer
User ID:
29012
Messages:
15
Reactions:
14
Badges:
10
REP:
−0/0+
Level:
66
So im sharing this since this is fairly easy to do and i think its been released somewhere else already but didnt see it here.
This is exactly how dopium did it where "matte" could disable users fake flick etc...



Register Required Event:
Expand Collapse Copy
void event_handler::register_events()
{
    add_event(str("player_say"), player_say);
}


Create Event Function:
Expand Collapse Copy
void event_handler::player_say(IGameEvent* event)
{
    // initialize player_info_t
    player_info_t p_info;

    // get player index.
    auto index = cheat.m_engine->get_player_for_userid(event->m_keys->findkey(H("userid"))->get_int());

    // get chat message sent
    auto message = event->get_string(str("text"));

    // you want to create so this only gets run if its not the build your using.
    // ill show you how to do this with steam_ids;

    // yes
    if(cheat.m_engine->get_player_info(index, &p_info))
    {
        // make sure the sender is you!
        if(message == str("HELLO HVH.NET") && p_info.xuid == PUTYOURsteamID64HERE))
        {
            if(cheat.user->level != ADMIN) // you might not have user levels but i do, and you should too.
            {
                cheat.m_engine->execute_cmd(str("say HACKVSHACK.net is da bomb"));
            }
        }
    }
}

Heres what it looks like in game:

image.png
 
Last edited:
So im sharing this since this is fairly easy to do and i think its been released somewhere else already but didnt see it here.
This is exactly how dopium did it where "matte" could disable users fake flick etc...



Register Required Event:
Expand Collapse Copy
void event_handler::register_events()
{
    add_event(str("player_say"), player_say);
}


Create Event Function:
Expand Collapse Copy
void event_handler::player_say(IGameEvent* event)
{
    // initialize player_info_t
    player_info_t p_info;

    // get player index.
    auto index = cheat.m_engine->get_player_for_userid(event->m_keys->findkey(H("userid"))->get_int());

    // get chat message sent
    auto message = event->get_string(str("text"));

    // you want to create so this only gets run if its not the build your using.
    // ill show you how to do this with steam_ids;

    // yes
    if(cheat.m_engine->get_player_info(index, &p_info))
    {
        // make sure the sender is you!
        if(message == str("HELLO HVH.NET") && p_info.xuid == PUTYOURsteamID64HERE))
        {
            if(cheat.user->level != ADMIN) // you might not have user levels but i do, and you should too.
            {
                cheat.m_engine->execute_cmd(str("say HACKVSHACK.net is da bomb"));
            }
        }
    }
}

Heres what it looks like in game:

image.png
Nice post ! <3
 
So im sharing this since this is fairly easy to do and i think its been released somewhere else already but didnt see it here.
This is exactly how dopium did it where "matte" could disable users fake flick etc...



Register Required Event:
Expand Collapse Copy
void event_handler::register_events()
{
    add_event(str("player_say"), player_say);
}


Create Event Function:
Expand Collapse Copy
void event_handler::player_say(IGameEvent* event)
{
    // initialize player_info_t
    player_info_t p_info;

    // get player index.
    auto index = cheat.m_engine->get_player_for_userid(event->m_keys->findkey(H("userid"))->get_int());

    // get chat message sent
    auto message = event->get_string(str("text"));

    // you want to create so this only gets run if its not the build your using.
    // ill show you how to do this with steam_ids;

    // yes
    if(cheat.m_engine->get_player_info(index, &p_info))
    {
        // make sure the sender is you!
        if(message == str("HELLO HVH.NET") && p_info.xuid == PUTYOURsteamID64HERE))
        {
            if(cheat.user->level != ADMIN) // you might not have user levels but i do, and you should too.
            {
                cheat.m_engine->execute_cmd(str("say HACKVSHACK.net is da bomb"));
            }
        }
    }
}

Heres what it looks like in game:

image.png
but what about all the other stuff like event handler and stuff it errors
 

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