GTA SAMP integrated anticheat??or something else? C++ problem

gdzies

Member
Joined
May 10, 2018
Messages
13
Reaction score
1
I made a c++ program that when certain buttons gets pressed the camera position and player angle changes with writeprocessmemory function in C++
still a c++ newbie...
after a about a minute the game freezes not crash but you cant control mouse or press WSAD keys this only happens in samp as far as i tested
i read somewhere that its an anticheat causing this here LINK: Read second answer
How can i stop this from happening??
I would be so happy if you guys help me fix this as this problem been spinning my head for days and googling so many things finally i think i have a clue and its this "integerated anticheat" or something
 
Last edited:

CosMy.PoWeR

Member
Joined
Apr 15, 2018
Messages
13
Reaction score
4
i did it simple for u, just add memcpy_safe func in your proj and ur done

C++:
memcpy_safe((void *)(g_dwSAMP_Addr + 0x99250), "\xC3", 1);
memcpy_safe((void *)(g_dwSAMP_Addr + 0x286923), "\xB8\x45\x00\x00\x00\xC2\x1C\x00", 8);
memcpy_safe((void *)(g_dwSAMP_Addr + 0x298116), "\xB8\x45\x00\x00\x00\xC2\x1C\x00", 8);
memcpy_safe((void *)(g_dwSAMP_Addr + 0x2B9EE4), "\xFF\x05\x00\x00\x00\x00\xA1\x00\x00\0x00\0x00\0xC3", 12);
 
Last edited:

gdzies

Member
Joined
May 10, 2018
Messages
13
Reaction score
1
i did it simple for u, just add memcpy_safe func in your proj and ur done

C++:
memcpy_safe((void *)(g_dwSAMP_Addr + 0x99250), "\xC3", 1);
memcpy_safe((void *)(g_dwSAMP_Addr + 0x286923), "\xB8\x45\x00\x00\x00\xC2\x1C\x00", 8);
memcpy_safe((void *)(g_dwSAMP_Addr + 0x298116), "\xB8\x45\x00\x00\x00\xC2\x1C\x00", 8);
memcpy_safe((void *)(g_dwSAMP_Addr + 0x2B9EE4), "\xFF\x05\x00\x00\x00\x00\xA1\x00\x00\0x00\0x00\0xC3", 12);

how do i get "g_dwSAMP_Addr"
 

y0mike

Active member
Joined
May 10, 2014
Messages
97
Reaction score
41
Location
mizus girl's house
how do i get "g_dwSAMP_Addr"

It may benefit you to learn some of the fundamentals before trying anything game-hacking related.

'g_dwSAMP_Addr' is the address of SA:MP's module 'samp.dll', you can get it with the function 'GetModuleHandle'
 
  • Like
Reactions: ini

Hidend

Expert
Joined
Mar 4, 2013
Messages
625
Reaction score
39
If you don't really know how to get samp address you shouldn't not bypass any anticheat ATM, get some knowledge and try later
 

gdzies

Member
Joined
May 10, 2018
Messages
13
Reaction score
1
It may benefit you to learn some of the fundamentals before trying anything game-hacking related.

'g_dwSAMP_Addr' is the address of SA:MP's module 'samp.dll', you can get it with the function 'GetModuleHandle'
ok il learn how to do it.

do i get the memcpy_safe function from the s0beit code or is it already in C++ and do i need to loop the bypass code or just execute it once?

memcpy_safe((void *)(g_dwSAMP_Addr + 0x99250), "\xC3", 1);
memcpy_safe((void *)(g_dwSAMP_Addr + 0x286923), "\xB8\x45\x00\x00\x00\xC2\x1C\x00", 8);
memcpy_safe((void *)(g_dwSAMP_Addr + 0x298116), "\xB8\x45\x00\x00\x00\xC2\x1C\x00", 8);
memcpy_safe((void *)(g_dwSAMP_Addr + 0x2B9EE4), "\xFF\x05\x00\x00\x00\x00\xA1\x00\x00\0x00\0x00\0xC3", 12);
 

y0mike

Active member
Joined
May 10, 2014
Messages
97
Reaction score
41
Location
mizus girl's house
ok il learn how to do it.

do i get the memcpy_safe function from the s0beit code or is it already in C++ and do i need to loop the bypass code or just execute it once?

memcpy_safe((void *)(g_dwSAMP_Addr + 0x99250), "\xC3", 1);
memcpy_safe((void *)(g_dwSAMP_Addr + 0x286923), "\xB8\x45\x00\x00\x00\xC2\x1C\x00", 8);
memcpy_safe((void *)(g_dwSAMP_Addr + 0x298116), "\xB8\x45\x00\x00\x00\xC2\x1C\x00", 8);
memcpy_safe((void *)(g_dwSAMP_Addr + 0x2B9EE4), "\xFF\x05\x00\x00\x00\x00\xA1\x00\x00\0x00\0x00\0xC3", 12);

Download the s0beit project and look for it?

https://github.com/BlastHackNet/mod...1f01882a6387499fc52/src/cheat_funcs.cpp#L3008

It's not hard man, you need to learn how to use the internet, especially if you want to get anywhere with coding.
 

gdzies

Member
Joined
May 10, 2018
Messages
13
Reaction score
1
Download the s0beit project and look for it?

https://github.com/BlastHackNet/mod...1f01882a6387499fc52/src/cheat_funcs.cpp#L3008

It's not hard man, you need to learn how to use the internet, especially if you want to get anywhere with coding.

I just got all the functions needed and got the g_dwSAMP_Addr address but in here
memcpy_safe((void *)(g_dwSAMP_Addr + 0x99250), "\xC3", 1);
memcpy_safe((void *)(g_dwSAMP_Addr + 0x286923), "\xB8\x45\x00\x00\x00\xC2\x1C\x00", 8);
memcpy_safe((void *)(g_dwSAMP_Addr + 0x298116), "\xB8\x45\x00\x00\x00\xC2\x1C\x00", 8);
memcpy_safe((void *)(g_dwSAMP_Addr + 0x2B9EE4), "\xFF\x05\x00\x00\x00\x00\xA1\x00\x00\0x00\0x00\0xC3", 12);


it says too few arguments in function call really need help please
i have 2017 c++ community version
 

brainis

New member
Joined
Oct 10, 2019
Messages
1
Reaction score
0
Location
RU
u need default values, declare the function above of your code...

C:
int memcpy_safe(void *_dest, const void *_src, uint32_t len, int check = NULL, const void *checkdata = NULL);
 
Top