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

Joined
May 10, 2018
Messages
10
Likes
0
Points
3
#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:
OP
OP
G
Joined
May 10, 2018
Messages
10
Likes
0
Points
3
#3
Last edited:
Joined
Apr 15, 2018
Messages
13
Likes
4
Points
18
1
#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:
OP
OP
G
Joined
May 10, 2018
Messages
10
Likes
0
Points
3
#5
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"
 

Hidend

Well-Known Member
Joined
Mar 4, 2013
Messages
588
Likes
33
Points
173
#7
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
 
OP
OP
G
Joined
May 10, 2018
Messages
10
Likes
0
Points
3
#8
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

Well-Known Member
Joined
May 10, 2014
Messages
97
Likes
41
Points
93
Location
mizus girl's house
Website
0x688sdaddy.com
#9
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.
 
OP
OP
G
Joined
May 10, 2018
Messages
10
Likes
0
Points
3
#10
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
Likes
0
Points
1
Location
RU
1
#11
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