What's new

Welcome to HvH Forum!

SignUp Now! Download Free HvH CS2/CS:GO Cheats, CFG, LUA/JS Scripts, And More!


SignUp Now!

Source Code How to control your cheat users trough chat [CSGO/CSGO 2018]

Rookie HvHer
User ID
29012
Messages
7
Reactions
7
Level
6
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:
void event_handler::register_events()
{
    add_event(str("player_say"), player_say);
}


Create Event Function:
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:
Legacy Enjoyer
User ID
13943
Messages
190
Reactions
50
Level
21
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:
void event_handler::register_events()
{
    add_event(str("player_say"), player_say);
}


Create Event Function:
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
 
supremacy enjoyer
User ID
89915
Messages
5
Reactions
2
Level
5
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:
void event_handler::register_events()
{
    add_event(str("player_say"), player_say);
}


Create Event Function:
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
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Top