void cheat_handle_skillbot ( ) { static int action = 0 ; if ( cheat_state -> actor . skillbot == 1 && action == 0 ) { keybd_event ( VK_CONTROL , 0 , 0 , 0 ) ; action = 1 ; } if ( cheat_state -> actor . skillbot == 0 && action == 1 ) { keybd_event ( VK_CONTROL , 0 , KEYEVENTF_KEYUP , 0 ) ; action = 0 ; } }
#pragma comment (lib, "User32.lib")