Ooh hai guise,
I made this like 3 years ago for EliteGunz and I just stumbled upon it.
This was supposed to greet you when you entered a channel to notify you about current events.
I never finished it so you can only use it to spam yourself since it's client-side.
Shouldn't be too hard to fix nowadays.
Code:// Gunz Server Greeter by KillerStefan \\ // Credits to PenguinGuy for tut of using C++ for Gunz \\ // Thanks to Phail/Theoretical for helping me fixing errors \\ #include <windows.h> #include <stdio.h> typedef void( __cdecl* ZChatOutputT ) ( const char*, int, int, DWORD ); ZChatOutputT ZChatOutput = ( ZChatOutputT ) 0x0042B860; typedef void( __cdecl* ZPostPeerChatType ) ( char* szMessage, int nTYPE ); ZPostPeerChatType ZPostPeerChat = ( ZPostPeerChatType )0x0042ADC0; // June 2007 ZChatOutput Address = 0042A230 \\ // July 2008 ZChatOutput Address = 0042B860 \\ void CustomCommands() { for(;;Sleep(20)) { if(GetAsyncKeyState (VK_MENU) && GetAsyncKeyState ('L')) { ZChatOutput("Welcome to EliteGunz! Report any bugs you find on the forums.", 2, 0, 0xFFFFFF); Sleep(250); } if(GetAsyncKeyState (VK_MENU) && GetAsyncKeyState ('K')) { ZChatOutput("KillerStefan is awesome!", 2, 0, 0xFFFFFF); Sleep(250); } if(GetAsyncKeyState (VK_MENU) && GetAsyncKeyState ('E')) { ZChatOutput("There is no place like EliteKingdoms!", 2, 0, 0xFFFFFF); Sleep(250); } if(GetAsyncKeyState (VK_MENU) && GetAsyncKeyState ('M')) { ZPostPeerChat("There is no place like EliteKingdoms!",0); Sleep(250); } } } extern "C" { __declspec(dllexport) BOOL __stdcall DllMain(HINSTANCE hInst,DWORD reason,LPVOID lpv) { DisableThreadLibraryCalls(hInst); if (reason == DLL_PROCESS_ATTACH) { MessageBox(NULL, "Injected succesfully", "Gunz Server Greeter", MB_OK); CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)&CustomCommands, NULL, 0, NULL); //Remember our void? "MyThread" ?? } return true; } }



Reply With Quote


