Some GTA San Andreas Features

Posts 1–8 of 8 · Page 1 of 1
Some GTA San Andreas Features
In last time, i hack GTA: San Andreas xD

GodMode:

First, you need two simple functions:
Code:
void ResetFunc(PVOID Address, void* Bytes, int Length)
{
	memcpy(Address, Bytes, Length);
}

void NopFunc(PVOID Address, int Length)
{
	memset(Address, 0x90, Length);
}
Code:
if(bGodMode)
    NopFunc((PVOID)0x4B331F, 6); //NOP Decrease Health
else
    ResetFunc((PVOID)0x4B331F, "\x89\x96\x40\x05\x00\x00", 6); //Restore Original Bytes
UnlimitedAmmo:

Code:
if(bUAmmo)
    NopFunc((PVOID)0x7428E6, 3); //NOP Decrease Weapon Ammo
else
    ResetFunc((PVOID)0x7428E6, "\xFF\x4E\x0C", 3); //Restore Original Bytes
If you use this, give Credits
This looks good, thanks for sharing.
Quote Originally Posted by CFHackerExtreme View Post
In last time, i hack GTA: San Andreas xD

GodMode:

First, you need two simple functions:
Code:
void ResetFunc(PVOID Address, void* Bytes, int Length)
{
	memcpy(Address, Bytes, Length);
}

void NopFunc(PVOID Address, int Length)
{
	memset(Address, 0x90, Length);
}
Code:
if(bGodMode)
    NopFunc((PVOID)0x4B331F, 6); //NOP Decrease Health
else
    ResetFunc((PVOID)0x4B331F, "\x89\x96\x40\x05\x00\x00", 6); //Restore Original Bytes
UnlimitedAmmo:

Code:
	
if(bUAmmo)
    NopFunc((PVOID)0x7428E6, 3); //NOP Decrease Weapon Ammo
else
    ResetFunc((PVOID)0x7428E6, "\xFF\x4E\x0C", 3); //Restore Original Bytes
If you use this, give Credits
Why making functions for NOP and Reset.
You could do it just in the hack part.

Anyway nice share
Quote Originally Posted by _PuRe.LucK* View Post


Why making functions for NOP and Reset.
You could do it just in the hack part.

Anyway nice share
I've coded the base 1 Month ago. I've copied the 2 Functions from my old base and i forgot why i've maked that Functions
Why not make things simpler?

Code:
bool SetMemory( int offset, bool Enabled, int len, void* data )
{
    if( bEnabled )
          memset( (PVOID)offset, 0x90, len );
    else
          memcpy( (PVOID)offset, (PVOID)&data, len );
}

///////////


SetMemory( 0x4B331F, bEnableGodMode, 6, "\x89\x96\x40\x05\x00\x00" );
SetMemory( 0x7428E6, bUnlimitedAmmo, 3, "\xFF\x4E\x0C" );
Quote Originally Posted by hkKenshin View Post
Why not make things simpler?

Code:
bool SetMemory( int offset, bool Enabled, int len, void* data )
{
    if( bEnabled )
          memset( (PVOID)offset, 0x90, len );
    else
          memset( (PVOID)offset, (PVOID)&data, len );
}

///////////


SetMemory( 0x4B331F, bEnableGodMode, 6, "\x89\x96\x40\x05\x00\x00" );
SetMemory( 0x7428E6, bUnlimitedAmmo, 3, "\xFF\x4E\x0C" );
Read the fucking fourth Post
Quote Originally Posted by CFHackerExtreme View Post
Read the fucking fourth Post
You need to learn some manners.

1.) I was offering an alternate solution that can work with your old base as well
2.) I actually was kind enough to take the time to write that.

...
Quote Originally Posted by hkKenshin View Post
Why not make things simpler?

Code:
bool SetMemory( int offset, bool Enabled, int len, void* data )
{
    if( bEnabled )
          memset( (PVOID)offset, 0x90, len );
    else
          memcpy( (PVOID)offset, (PVOID)&data, len );
}

///////////


SetMemory( 0x4B331F, bEnableGodMode, 6, "\x89\x96\x40\x05\x00\x00" );
SetMemory( 0x7428E6, bUnlimitedAmmo, 3, "\xFF\x4E\x0C" );
Why asking the same thing? CFHacker told it to all.
Posts 1–8 of 8 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us