how to gather 2memory'

shanker

Well-known member
Joined
Sep 18, 2016
Messages
291
Reaction score
17
Location
Romania
it's a c++ console aplication

[shcode=cpp]
#define CPED                  0xB6F5F0
#define INFINITE_HEALTH       0x42  

ReadProcessMemory(handle, (PBYTE*)(CPED + INFINITE_HEALTH), &value, sizeof(value), 0);
[/shcode]

it returns me 196608, what the heck is taht? not even in cleo i have dont know how to  read this :(

Code:
[color=#252525][font=sans-serif]CPed +0x42 = [byte] Is the BP/EP/FP/DP (special flags) status of the player as follows:[/font][/color]
[list]
[*]Bit 1 = makes ped soft (ie. can move through walls and everything) (noclip in other words)

[*]Bit 2 = freezes ped (ie. ped cannot walk)

[*]Bit 3 = bullet-proof

[*]Bit 4 = flame-proof

[*]Bit 5 = collision-proof

[*]Bit 6 = MP-proof (MP)

[*]Bit 7 = ?

[*]Bit 8 = explosion-proof
[*]

i just want to make  the script to return me every bit (if colision is true, bulet proof,explosion etc)
 

0x_

Wtf I'm not new....
Staff member
Administrator
Joined
Feb 18, 2013
Messages
1,123
Reaction score
175
http://en.cppreference.com/w/cpp/language/bit_field
 
Top