Code:
#include <Windows.h>
#include <iostream>
void (__cdecl *SendCommandToConsole)(int a1,int a2,char *cvar)=(void (__cdecl *)(int,int,char *))0x0446DD0;//for alteriwnet
HANDLE mw2 = GetCurrentProcess();
DWORD WINAPI Qs(LPVOID)
{//start of main qs
/*Collor codes
^1 - RED
^2 - GREEN
^3 - YELLOW
^4 - BLUE
^5 - CYAN
^6 - PINK
^7 - WHITE
^8 - DEFAULT MAP COLOR
^9 - GREY OR DEFAULT MAP COLOR
^0 - BLACK
*/
bool OnOff = false;//false == off, true == on
bool AimCross = false;//same as above
byte IsInGame = 0;//if higher then zero you are in game
for(;;)
{//start of for
ReadProcessMemory(mw2, (LPVOID)0x007F4988, &IsInGame, (DWORD)sizeof(IsInGame), NULL);//reads to IsInGame
if(GetAsyncKeyState(VK_F5))//on off for qs
{//f5
OnOff =! OnOff;
Sleep(300);
if(OnOff == true)
{
SendCommandToConsole(1,1, "say_irc ^1A^2Q^4S^0/^7O^7N");
}
if(OnOff == false)
{
SendCommandToConsole(1,1, "say_irc ^1A^2Q^4S^0/^7O^7F^7F");
}
}//end of f5
if(GetAsyncKeyState(VK_F6))//on off for aimassist + crosshair
{//aim+Cross on off
AimCross =! AimCross;
Sleep(300);
if(AimCross == true)
{
SendCommandToConsole(1,1, "say_irc Aim/Cross/ON");
*(byte*)0x0646F098 = 1;
*(float*)0x0646F188 = 1.2;
*(float*)0x0646F138 = 12;
*(float*)0x0646EA58 = 100;
*(float*)0x0646EE68 = 1.2;
*(float*)0x0646EEB8 = 12;
*(float*)0x0646EA08 = 100;
*(BYTE*)0x0646EE18 = 1;
}
if(AimCross == false)
{
SendCommandToConsole(1,1, "say_irc Aim/Cross/OFF");
*(byte*)0x0646F098 = 0;
*(float*)0x0646F188 = 1.2;
*(float*)0x0646F138 = 12;
*(float*)0x0646EA58 = 100;
*(float*)0x0646EE68 = 1.2;
*(float*)0x0646EEB8 = 12;
*(float*)0x0646EA08 = 100;
*(BYTE*)0x0646EE18 = 0;
}
}//end of aim+Corss on off
if(OnOff == true)//if OnOff is even
{//start of on off
if(IsInGame > 0)//if you are spawned
{//start of is in game
if(GetAsyncKeyState(VK_RBUTTON))
{//start of qs
*(byte*)0x00B32788 = 1;//ads == true
Sleep(260);
mouse_event(MOUSEEVENTF_LEFTDOWN,0,0,0,0);//leftclick down
mouse_event(MOUSEEVENTF_LEFTUP, 0,0,0,0);//lefclick down
Sleep(20);
*(byte*)0x00B32788 = 0;//ads == false
Sleep(200);
}//end of qs
}//end of is in game
}//end of onoff
}//end of for
return 1;
}//end of mainqs
BOOL WINAPI DllMain (HINSTANCE hModule, DWORD dwAttached, LPVOID lpvReserved)
{
if (dwAttached == DLL_PROCESS_ATTACH)//if dll is injected do this
{
CreateThread( 0, 0, Qs, 0 , 0, 0 );
}
return 1;
}