I Use this for scripts protecions
I Use This for Protecions like Fire,Proyectile
So The problem its when i play online the Lobby just have inmortal Cops and Cars and i can get in a vehicle
And More More Bad Things
And This its my hook :/
I Think that the hook its bad but if u have like a patche(Maybe)
Please Share with me :/ Thanks
Code:
VOID HandleNetworkedEvent_Hook(DWORD dwTablePtr, DWORD dwNetEvent, DWORD dwEventData, DWORD dwNetPlayer, DWORD r7, DWORD r8, DWORD r9, DWORD r10) {
DWORD* dwStart = (DWORD*)(*(DWORD*)(*(DWORD*)(dwNetEvent)+0x18));
DWORD dwCache = *dwStart;
switch (*(WORD*)(dwNetEvent + 0x04)) {
case SCRIPTED_GAME_EVENT: {
if (Protection[0]) {
DWORD* dwArgs = (DWORD*)(dwEventData + 0x24);
if (dwArgs[0] == 0x2 && dwArgs[2] == 0x35) {
ShowMessageOnScreen("%s Trato de Expulsarte - Off Host.", PLAYER::GET_PLAYER_NAME(*(CHAR*)(dwNetPlayer + 0x29)));
*dwStart = 0x4E800020;
}
}
I Use This for Protecions like Fire,Proyectile
Code:
case FIRE_EVENT: {
if (Protection[1]) {
ShowMessageOnScreen("%s Intento Crear Fuego en Ti/Cerca.", PLAYER::GET_PLAYER_NAME(*(CHAR*)(dwNetPlayer + 0x29)));
*dwStart = 0x4E800020;
}
} break;
So The problem its when i play online the Lobby just have inmortal Cops and Cars and i can get in a vehicle
And More More Bad Things
And This its my hook :/
Code:
d_HandleNetworkedEvent.SetupDetour(DecVar(ENC_VAR(0x835DB018)), HandleNetworkedEvent_Hook);//V2 PROTECION HOOK
I Think that the hook its bad but if u have like a patche(Maybe)
Please Share with me :/ Thanks
Disc = 0xemiil