Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

[Problem] coś robie źle


ignorehax

Rekomendowane odpowiedzi

Opublikowano

Siema mam problem. Otóż wpisuje taki adress:

#define No_Fall_Damage 0x102E0

 

Następnie void:

void No_Damage()
{
DWORD dwServerPointer = *(DWORD*)ServerPointer;
if(dwServerPointer !=0)
{
*(float*)(dwServerPointer + No_Fall_Damage) = 1;
}
}

 

I po skoku na Super Jump padam -.-

 

I czy mogę prosić o void i adres Speedu??

Opublikowano

Wartość zmień z 1 na 999999;

 

Adres Speed'a:

#define ADR_Speed 0x890168

 

A co do samej funkcji Speed, to została ona spatchowana i musisz użyć MemPatcha by Ci ona zadziałała.

Opublikowano

Stwórz nowy header.

Wklej ten kod do niego:

 

#pragma once

#ifndef __CMEMORYPATCH_H__

#define __CMEMORYPATCH_H__

 

#include

 

template

class cMemPatch

{

private:

unsigned long Address;

T OffValue;

T OnValue;

int PatchStatus;

int OffValueSaved;

 

enum PATCHSTATUS

{

NORMAL,

PATCHED

};

 

bool SaveOffValue(void);

 

public:

cMemPatch(void);

cMemPatch(unsigned long ADR, T VAL);

 

void Patch(void);

void Restore(void);

};

 

template

cMemPatch::cMemPatch(void)

{

}

 

template

cMemPatch::cMemPatch(unsigned long ADR, T VAL)

{

this->Address = ADR;

this->OnValue = VAL;

this->PatchStatus = NORMAL;

this->OffValueSaved = false;

}

 

template

void cMemPatch::Patch()

{

if (this->PatchStatus == NORMAL)

{

if (this->OffValueSaved == false)

{

if (!this->SaveOffValue())

return;

}

else

{

//*(T*)(this->Address) = this->OnValue;

unsigned long size;

VirtualProtect((void*)this->Address, sizeof(this->OnValue), PAGE_READWRITE, &size);

memcpy((void*)this->Address, &this->OnValue , sizeof(this->OnValue));

VirtualProtect((void*)this->Address, sizeof(this->OnValue), size, 0);

this->PatchStatus = PATCHED;

}

}

}

 

template

void cMemPatch::Restore()

{

if (this->PatchStatus == PATCHED)

{

*(T*)(this->Address) = this->OffValue;

this->PatchStatus = NORMAL;

}

}

 

template

bool cMemPatch::SaveOffValue()

{

if (IsBadReadPtr((void*)(this->Address), sizeof(T)))

return false;

else

{

this->OffValue = *(T*)(this->Address);

this->OffValueSaved = true;

return true;

}

}

 

 

#endif

 

Następnie do swojej bazy dodaj ten kod:

 

 

if( Speed )
{
Speed1.Patch();

}
else
{
Speed1.Restore();

}

MemPatch <double> Stamina1(ADR_SPEED1, /*Value*/ 100);


#define ADR_SPEED1         //Tutaj adres. 

 

Kod pisany na szybko nie wiem czy będzie działać w 100%. Adres dodaj. ;D

1365881062-U68160.png

Opublikowano

1346594784-U507582.png

By lux.

 

| Validating | Members | WarRock Helper | Coding Cheats | Pro User | PostMaker | MPC Champion | MPC Popular | Gold Member | Blue Member |

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...