myudev / SAMPAC

A Plug-in based SA:MP Anticheat.
GNU General Public License v2.0
15 stars 2 forks source link

Tips/Ideas #3

Closed ghost closed 10 years ago

ghost commented 10 years ago

Some tips:

This will not work under linux, requires +8 padding.

char unk[0x6D]; // overjump some crap
    double dEslapedTime;
int  p_iSpawnsAvailable; // aka Classes
_CLASS_INFO m_cClasses[MAX_CLASSES];

If you need, I have reverse engineered almost every CNetGame and its pointer class variables. (Thx to opensamp, FCNPC, etc..) https://github.com/kurta999/YSF/blob/YSF_/Structs.h

myudev commented 10 years ago

Thanks, and i know that these exports are on there but theres one fact that i wrote down (Again if someone asks, why not use the damn patterns? THE answer is SIMPLE: An Anticheat should be reliable, and should work without any worrys. If we would use patterns, the Plug-in will think we are 99% Updated (means the offsets are right). But in other ways, we CAN'T be sure if the internal structures got changed, that will maybe lead into random access violation(s), or crashes and we DONT want that.).

Since we use sampgdk to ensure that everything is up-to-date i think it would be better that we sometimes not access any memory than accessing potentially invalid memory and cause a big ban wave because the anticheat gets some bad results.

Thanks for the information with linux, didn't tried that class thing there!