..::Information::..
This "snipped" is very basic, i've tested it and it worked,
but sometimes the menu is just getting recreated ingame.
You can easily fix it, if you know how to work with reset and sprites.
:/
Out of my view, i wouldn't give a fuck xD, since hack-users should be thankful to me because of creating a hack for them, isn't that so? :P
Hello guys,
i decided to show you a method to reset your sprites, because a lot of people were asking me how, but when i tried to help them they were like "wtf r u talkin 'bout??" yep, that's the most spread desease here, isn't it?
It's very basic, easy and there are alot of ways.
The way i like the best is this one:
(Easy for beginners)
First of all collect the names of your Textures you've created.
[In order to do this you may need to use a drawtexture function, it makes no sense if it's loaded from bytes or file]
In globals:
Code:
bool recreate = false;
In Present or Endscene Put this (I recommended to make it easy to find for me -> above hacking stuff)
Code:
if(recreate){
D3DXCreateTextureFromFileInMemory(pDevice, &_Page1, sizeof(_Page1), &Page1);// Your Texture. Do not Put a If Zero infront of the creation.
// Do the stuff above with all your Textures!
D3DXCreateSprite(pDevice, &SpriteMenu);// Your Sprite SpriteMenu = Your //LPD3DXSPRITE
recreate = false;
}
After you finished doing this, add this into your Reset
[Recommended you have a working reset in your Base|Source|C&P'ed thingy what ever.]
For example:
Code:
HRESULT WINAPI hkReset(PREMETERS = Example){
SpriteMenu->OnLostDevice();
recreate =! recreate ;
}
// This is an example reset!
This is the easiest method i could find.
I tested it and it worked for me..
Give me Feedback.