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"));
}
}
}
}