Basically, I'm making a Hack to Kill All through Mono Array as shown in this thread :
How to hook arrays in Unity's Il2cpp - Platinmods.com - Android & iOS MODs, Mobile Games & Apps
So, I have
This code is in Main.cpp above Hack Thread :
Sorry Can't Show Full Code As It Can Be Copy/Pasted If you want full code to help and understand it in beeter way then please give me your telegram username I will send you there!!!
Code is like this :
Example :
And it's giving me this error :
I have added struct of Mono Array in different file MonoArray.h I have also included that in Main.cpp :
Please tell me where I'm doing wrong.
And please also correct me if I'm wrong should I add this hook in MonoArray.h or somewhere else?
Because I tried to add this hook in Main.cpp under hack thread it gave me errors.
monoArray<void *> *(*PhotonNetwork_get_OtherPlayers)() = (monoArray<void *> *(*)())il2cppAddress + 0xOFFSET;
How to hook arrays in Unity's Il2cpp - Platinmods.com - Android & iOS MODs, Mobile Games & Apps
So, I have
This code is in Main.cpp above Hack Thread :
Sorry Can't Show Full Code As It Can Be Copy/Pasted If you want full code to help and understand it in beeter way then please give me your telegram username I will send you there!!!
Code is like this :
Example :
C++:
void (*Kill)(void *instance);
void (*old_Update)(void *instance);
void Update(void *instance) {
if (instance != NULL) {
auto players = get_PlayerList();
for (int i; i < players->getLength; i++) {
auto player = players->getPointer();
Kill(player);
}
}
old_Update(instance);
}
And it's giving me this error :
I have added struct of Mono Array in different file MonoArray.h I have also included that in Main.cpp :
Please tell me where I'm doing wrong.
And please also correct me if I'm wrong should I add this hook in MonoArray.h or somewhere else?
Because I tried to add this hook in Main.cpp under hack thread it gave me errors.
monoArray<void *> *(*PhotonNetwork_get_OtherPlayers)() = (monoArray<void *> *(*)())il2cppAddress + 0xOFFSET;
Last edited: