 |  Add a COD4 hotkeyThis is a discussion on Add a COD4 hotkey within the CoD 4 forum forum part of the Call of Duty category; Here's what i got so far to add COD4 hotkeys and it works perfectly in game.
#include"windows.h"
//Nametags
BYTE Nametags1On[] ...  Welcome on D3scene.com! Make sure to register - it's free and very quick! You have to register before you can post and participate in our discussions with 70000 other registered members. Downloads, user profiles and some forums can only be seen by registered members. After you create your free account you will be able to customize many options, you will have the full access to new hacks, latest cheats and last but not least will see no advertisements at all. We would love to see you around in our community! 
04-13-2008, 05:21 PM
|  | Administrator | | Join Date: Feb 2007 Location: Hamburg, Germany
Posts: 5,686
Thanks: 69
Thanked 63 Times in 24 Posts
Reputation: 1453
Rep Power: 12 | | | Add a COD4 hotkey Here's what i got so far to add COD4 hotkeys and it works perfectly in game. Quote:
#include"windows.h"
//Nametags
BYTE Nametags1On[] = {0x0F, 0x84, 0xCE, 0x00, 0x00, 0x00};//Nametags
BYTE Nametags1Off[] = {0x0F, 0x85, 0xCE, 0x00, 0x00, 0x00};//0042E26C
BYTE Nametags2On[] = {0x0F, 0x84, 0x09, 0x02, 0x00, 0x00};//DrawThroughWalls
BYTE Nametags2Off[] = {0x0F, 0x85, 0x09, 0x02, 0x00, 0x00};//0042DF64
unsignedlong Protection;
BOOL WINAPI DllMain (HINSTANCE hModule, DWORD dwAttached, LPVOID lpvReserved)
{
if (dwAttached == DLL_PROCESS_ATTACH)
{
VirtualProtect((void*)0x0042E26C, 6, PAGE_READWRITE, &Protection);
memcpy((void*)0x0042E26C, (constvoid*)Nametags1On, 6);
VirtualProtect((void*)0x0042E26C, 6, Protection, 0);
VirtualProtect((void*)0x0042DF64, 6, PAGE_READWRITE, &Protection);
memcpy((void*)0x0042DF64, (constvoid*)Nametags2On, 6);
VirtualProtect((void*)0x0042DF64, 6, Protection, 0);
}
}
| but i would like to be able to toggle it on and off while in game....could someone kindly give me a hand to get like a hotkey happening here...i have had previous attempts but obviously with no luck so far...
here would be the off feature Quote:
VirtualProtect((void*)0x0042E26C, 6, PAGE_READWRITE, &Protection);
memcpy((void*)0x0042E26C, (constvoid*)Nametags1Off, 6);
VirtualProtect((void*)0x0042E26C, 6, Protection, 0);
VirtualProtect((void*)0x0042DF64, 6, PAGE_READWRITE, &Protection);
memcpy((void*)0x0042DF64, (constvoid*)Nametags2Off, 6);
VirtualProtect((void*)0x0042DF64, 6, Protection, 0);
| source: [Coding] - Adding a hotkey - UnKnoWnCheaTs | | D3scene |
Welcome to D3scene - probably the best location for all Gamers.
To participate in our friendly environment you have to register. After completing registration you will have full access to all threads and features. We care about members and try to make your stay as pleasant as possible. We are unique with the following feature for members - you will not see a single Advertisement!
The best: registration is completely free. It will not cost you a single penny or harm you in any way. You will lose nothing except 1 minute of your time. So why not register? We would be happy to see you around!
| 
04-13-2008, 05:24 PM
|  | myspace.com/ryan_str0up | | Join Date: Jul 2007 Location: Folsom, California
Posts: 2,202
Thanks: 0
Thanked 0 Times in 0 Posts
Reputation: 477
Rep Power: 6 | | | Very Nice. Rep Added. | 
08-19-2008, 03:07 AM
|  | Wannabe Member | | Join Date: Aug 2008 Location: New Jersey
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Reputation: 1
Rep Power: 2 | | | Very nice indeed | 
08-26-2008, 06:03 AM
| | Newbie | | Join Date: Aug 2008 Location: Texas
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Reputation: 1
Rep Power: 2 | | | ty | | D3scene |
Welcome to D3scene - probably the best location for all Gamers.
To participate in our friendly environment you have to register. After completing registration you will have full access to all threads and features. We care about members and try to make your stay as pleasant as possible. We are unique with the following feature for members - you will not see a single Advertisement!
The best: registration is completely free. It will not cost you a single penny or harm you in any way. You will lose nothing except 1 minute of your time. So why not register? We would be happy to see you around!
| | Thread Tools | | | | Display Modes | Linear Mode |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | | All times are GMT +1. The time now is 11:30 AM. | |  |