This is from a tutorial, not sure if it works
Code:void premium () //Gold Premium { DWORD dwPlayerPtr = *(DWORD*)Serverpointer; if(dwPlayerPtr != 0) { *(long*)(dwPlayerPtr+Premium_OffSet) = 3, 10; // 1 = bronze 2 = silver 3 = gold } }
I recently started coding my own hacks witch will be realeased soon. Ive been using the *(float*) method witch has worked all the way threw it except for 2 hacks gold premium and opk. Through analysis i noticed that.
Spread has ADR_nospread as premuim has OFS...Code:#define ADR_Spread 0x00B042B0 #define OFS_PREMIUM 0x00374
Now just an educated guess that ADR = address and OFS = offset..how would i find the address of the offset if not how would i code he offset for gold prem.
Also here is how ive coded my nospread witch works perfectly
Code://No Spread void Spread() { *(float*) ADR_Spread = 0; }
This is from a tutorial, not sure if it works
Code:void premium () //Gold Premium { DWORD dwPlayerPtr = *(DWORD*)Serverpointer; if(dwPlayerPtr != 0) { *(long*)(dwPlayerPtr+Premium_OffSet) = 3, 10; // 1 = bronze 2 = silver 3 = gold } }
Yeh you would just add the offset to the base pointer, which in this case is the PlayerPointer, just like Booya said.
"Every gun that is made, every warship launched, every rocket fired signifies, in the final sense, a theft from those who hunger and are not fed, those who are cold and are not clothed. This world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children. The cost of one modern heavy bomber is this: a modern brick school in more than 30 cities. It is two electric power plants, each serving a town of 60,000 population. It is two fine, fully equipped hospitals. It is some fifty miles of concrete pavement. We pay for a single fighter plane with a half million bushels of wheat. We pay for a single destroyer with new homes that could have housed more than 8,000 people. This is, I repeat, the best way of life to be found on the road the world has been taking. This is not a way of life at all, in any true sense. Under the cloud of threatening war, it is humanity hanging from a cross of iron."- Dwight D. Eisenhower
cnttuchme (09-30-2009)
Thank you so much !!!......i would love you to be added to my msn messenger or yahoo im
Yahoo: johnjohn51392@yahoo.com
msn:cnttuchme@hotmail.com
As a matter of fact anyone who codes can add me b/c im just starting to learn to code...
Last edited by cnttuchme; 09-29-2009 at 04:33 PM. Reason: idk
undeclared identifier???Code://STAMINA void STAMINA()//unlimited stamina { DWORD dwplayerPtr = *(DWORD*)Serverpointer; if(dwPlayerPtr != 0) { *(long*) (dwplayerPtr+OFS_STAMINA) = 5000, 5000; } }
any suggestions...
Sorry for double post