using Swed64; using System.Runtime.InteropServices; Swed swed = new Swed("cs2"); const int SPACE_BAR = 0x20; const uint STANDING = 65665; const uint CROUCHING = 65667; const uint PLUS_JUMP = 65537; //+jump const uint MINUS_JUMP = 256; //-jump IntPtr client = swed.GetModuleBase("client.dll"); IntPtr forceJumpAddress = client + 0x1883C20; while (true) { IntPtr playerPawnAddress = swed.ReadPointer(client, 0x188AF10); uint fFlag = swed.ReadUInt(playerPawnAddress, 0x80C); if (GetAsyncKeyState(SPACE_BAR) < 0) { if (fFlag == STANDING || fFlag == CROUCHING) { Thread.Sleep(1); // cant jump swed.WriteUInt(forceJumpAddress, PLUS_JUMP); //+jump } else { swed.WriteUInt(forceJumpAddress, MINUS_JUMP); //-jump } Thread.Sleep(5); } } // imports [DllImport("user32.dll")] static extern short GetAsyncKeyState(int vKey); CSHARP using Swed64; using System.Runtime.InteropServices; Swed swed = new Swed("cs2"); const int SPACE_BAR = 0x20; const uint STANDING = 65665; const uint CROUCHING = 65667; const uint PLUS_JUMP = 65537; //+jump const uint MINUS_JUMP = 256; //-jump IntPtr client = swed.GetModuleBase("client.dll"); IntPtr forceJumpAddress = client + 0x1883C20; while (true) { IntPtr playerPawnAddress = swed.ReadPointer(client, 0x188AF10); uint fFlag = swed.ReadUInt(playerPawnAddress, 0x80C); if (GetAsyncKeyState(SPACE_BAR) < 0) { if (fFlag == STANDING || fFlag == CROUCHING) { Thread.Sleep(1); // cant jump swed.WriteUInt(forceJumpAddress, PLUS_JUMP); //+jump } else { swed.WriteUInt(forceJumpAddress, MINUS_JUMP); //-jump } Thread.Sleep(5); } } // imports [DllImport("user32.dll")] static extern short GetAsyncKeyState(int vKey);
PinkFlam, я гуглил, не нашел, еще какаято ошибка есть Программы, использующие инструкции верхнего уровня, должны быть исполняемыми. на 5 строке Swed swed = new Swed("cs2");