Garry's Mod

How to write an anti-cheat code

Submitted by ProfZ, , Thread ID: 254516

ProfZ
Lurker
Level:
0
Reputation:
0
Posts:
3
Likes:
0
Credits:
6
16-11-2022, 05:17 PM
#1
Good afternoon, I want to create an anti-cheat code, but I don't know how to do it correctly. Tell me who can. Feelstastyman

RE: How to write an anti-cheat code

Pong
Newbie
Level:
0
Reputation:
0
Posts:
11
Likes:
0
Credits:
8
09-01-2023, 12:52 PM
#2
Thats literally the point of anticheats. To figure out how to detect.

First you need to understand how cheats work.
The simplest thing to do is read the player's hooks. But obviously every cheat since 2012 has hook detours
You can also look at concommands, but same thing as before.
You can try to screengrab, but same thing as before. There's render.Capture detours
You need to understand in depth how cheats work in order to make an anticheat, and they are a lot of work. Thats my recommendation. Learn to cheat before you can learn to prevent it.


or if ur just asking about a small server, theres always sv_allowcslua 0, but thats not going to stop a single person, just the children
good luck mang

Users browsing this thread: 1 Guest(s)