How i can to add new cvar in the console game "hack_version 1.0.0"
Like this code:
//code
#include <iostream>
#include <windows.h>
using namespace std;
int main()
{
cout << "Test Hack" << endl;
HWND fenster = NULL;
while(fenster == NULL)
{
fenster = FindWindow (NULL, TEXT ("Counter-Strike"));
Sleep(100);
}
cout << "CS 1.6 has been found!" << endl;
DWORD prozessid;
GetWindowThreadProcessId(fenster, &prozessid);
HANDLE handleprozess;
handleprozess = OpenProcess(PROCESS_ALL_ACCESS, FALSE, prozessid);
DWORD puffer = NULL;
int can = 250;
int cy=250,para=30000,mermi=900;
WriteProcessMemory(handleprozess, (LPVOID)0x01A17C78, &can, (DWORD)sizeof(can),NULL);
WriteProcessMemory(handleprozess, (LPVOID)0x01A19544, &cy, (DWORD)sizeof(cy),NULL);
WriteProcessMemory(handleprozess, (LPVOID)0x01A1B9FC, ¶, (DWORD)sizeof(para),NULL);
WriteProcessMemory(handleprozess, (LPVOID)0x01A16368, &mermi, (DWORD)sizeof(mermi),NULL);
CloseHandle(handleprozess); return 0;
}
//end.
Thanks for who will help me!