csgo force crosshair on sniper python
static char* DrawCrosshairWeaponTypeCheck = reinterpret_cast<char*>( FindSignature( "client.dll", "83 F8 05 75 17" ) );
DWORD dwOldProtect;
DWORD dwNewProtect;
// Make it writable
VirtualProtectEx( GetCurrentProcess(), DrawCrosshairWeaponTypeCheck, 3, PAGE_EXECUTE_READWRITE, &dwOldProtect );
*( ( DrawCrosshairWeaponTypeCheck + 0x2 ) ) = 0xFF;
// Restore old protection
VirtualProtectEx( GetCurrentProcess(), DrawCrosshairWeaponTypeCheck, 3, dwOldProtect, &dwNewProtect );