Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- YOU ARE FREE TO REDISTRIBUTE AND USE THIS PIECE OF WORK AS LONG AS
- CREDITS TO THE AUTHOR, Nukem, ARE CLEARLY STATED.
- */
- typedef void (__cdecl * tCBuf_AddText)(int unk1, char *Cmd);
- tCBuf_AddText CBuf_AddText = (tCBuf_AddText)0x00461A30;
- DWORD WINAPI MainThread(LPVOID lpArg)
- {
- char buf[1024];
- while(true)
- {
- if(GetAsyncKeyState(VK_F6))
- {
- sprintf_s(buf, "mr %d -1 endround;", *(int*)0x0FF5450);
- CBuf_AddText(0, buf);
- Sleep(500);
- }
- Sleep(250);
- }
- return 0;
- }
- BOOL APIENTRY DllMain( HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved )
- {
- switch (ul_reason_for_call)
- {
- case DLL_PROCESS_ATTACH:
- CreateThread(NULL, NULL, MainThread, NULL, NULL, NULL);
- break;
- }
- return TRUE;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement