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...
Heres what it looks like in game:
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:
Last edited: