PDA

View Full Version : Need help for playerpointer



NoobH4xer
01-15-2008, 09:45 AM
sry but I dont know how to freeze playerpointer, NFD, swim, superjump and weapons. thats the addies:

Player Pointer: 12DF500

NFD :
Player pointer + Offset 264

Swim:
Player pointer + Offset 276

Super Jump:
Player pointer + Offset 179

Weapons:
Player pointer + Offset 4C


Did I need a timer? and what is offset? sry but I am a noob:D

wr194t
01-15-2008, 09:58 AM
sry but I dont know how to freeze playerpointer, NFD, swim, superjump and weapons. thats the addies:

Player Pointer: 12DF500

NFD :
Player pointer + Offset 264

Swim:
Player pointer + Offset 276

Super Jump:
Player pointer + Offset 179

Weapons:
Player pointer + Offset 4C


Did I need a timer? and what is offset? sry but I am a noob:DYou'll be using the WritePointerFloat, and long functions for these hacks. First paste these functions into your hack coding:


void WritePointerFloat(long addy, short offset, float value)
{
long maddy;
long saddy;
memory();
ReadProcessMemory(hProcess, (LPVOID*)(DWORD) addy, &maddy, sizeof(maddy), NULL);
saddy = maddy + offset;
WriteProcessMemory(hProcess, (LPVOID*)(DWORD) saddy, &value, sizeof(value), NULL);
}

void WritePointerLong(long addy, short offset, long value)
{
long maddy;
long saddy;
memory();
ReadProcessMemory(hProcess, (LPVOID*)(DWORD) addy, &maddy, sizeof(maddy), NULL);
saddy = maddy + offset;
WriteProcessMemory(hProcess, (LPVOID*)(DWORD) saddy, &value, sizeof(value), NULL);
}

WritePointerFloat = NFD, Super Jump/Sky Stormer
WritePointerLong = Weapons, Swim

Now lets start. Weapons doesn't need a timer, so weapon hacks can just go in buttons. The code looks like this:

WritePointerLong(0x12DF500, 0x4C, 42);

Swim, NFD and Super Jump/Sky Stormer all use timers and WritePointerFloat, not long. The code is pretty much the same, just change the offset and values, and put them in timers.

NoobH4xer
01-15-2008, 10:24 AM
thx but I have a problem with the timer: in cobra's tut to add timers he say we have to go to resource.h file but I cant find it at the window on the left. should I do anything befor I add a timer?

wr194t
01-15-2008, 10:34 AM
thx but I have a problem with the timer: in cobra's tut to add timers he say we have to go to resource.h file but I cant find it at the window on the left. should I do anything befor I add a timer?You need to add your timer, then declare it in resource.h which can be found here:
http://img411.imageshack.us/img411/5684/58693767tx0.jpg

Wieter20
01-17-2008, 10:51 AM
every1 is doing ofsett wrong offset of sj is 178!!! not 179, 179 is dig

NoobH4xer
01-18-2008, 09:15 AM
ok I add a timer and then when i want to rebuild it there are 3 errors and 1 warning:
Deleting intermediate files and output files for project 'Lol - Win32 Debug'.
--------------------Configuration: Lol - Win32 Debug--------------------
Compiling resources...
Compiling...
StdAfx.cpp
Compiling...
Lol.cpp
LolDlg.cpp
C:ProgrammeMicrosoft Visual StudioMyProjectsLolLolDlg.cpp(187) : error C2065: 'firsttimer' : undeclared identifier
C:ProgrammeMicrosoft Visual StudioMyProjectsLolLolDlg.cpp(187) : error C2051: case expression not constant
C:ProgrammeMicrosoft Visual StudioMyProjectsLolLolDlg.cpp(190) : error C2065: 'Writealong' : undeclared identifier
C:ProgrammeMicrosoft Visual StudioMyProjectsLolLolDlg.cpp(193) : warning C4060: switch statement contains no 'case' or 'default' labels
Generating Code...
Error executing cl.exe.

Lol.exe - 3 error(s), 1 warning(s)

wr194t
01-18-2008, 09:57 AM
C:ProgrammeMicrosoft Visual StudioMyProjectsLolLolDlg.cpp(187) : error C2065: 'firsttimer' : undeclared identifier <-- You haven't declated this timer in your resource.h, or you've spelt it incorrectly.
C:ProgrammeMicrosoft Visual StudioMyProjectsLolLolDlg.cpp(187) : error C2051: case expression not constant <-- Not sure. Double click the error so it leads to the problem, and post a screenshot.
C:ProgrammeMicrosoft Visual StudioMyProjectsLolLolDlg.cpp(190) : error C2065: 'Writealong' : undeclared identifier <-- You haven't added Writealong function to your coding, or you've spelt in incorrectly in your hacks.
C:ProgrammeMicrosoft Visual StudioMyProjectsLolLolDlg.cpp(193) : warning C4060: switch statement contains no 'case' or 'default' labels <-- Do the same as the second error.

Wieter20
01-18-2008, 11:22 AM
he probally didnt do this:

case FIRSTTIMER: