This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "../features.hpp" | |
| float server_curtime() { | |
| const auto v1 = static_cast<i_net_channel_info*> (interfaces::engine->get_net_channel_info()); | |
| const auto v3 = v1->get_latency(1); //local player | |
| const auto v4 = v1->get_latency(0); //generic | |
| return v3 + v4 + ticks_to_time(1) + ticks_to_time(csgo::cmd->tick_count); | |
| } | |
| bool lby_update() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Just paste in your main.cpp | |
| //compile | |
| #define WIN_LEAN_AND_MEAN | |
| #include <iostream> | |
| #include <Windows.h> | |
| #include <TlHelp32.h> | |
| DWORD get_proc_id(const char* proc_name) | |
| { |