None of these are really creds to you..Just saying
You want to make a Date-Funktion in your d3d hack?
Us this code:
Credits [G]a[M]e[R]Code:char* DATE(void) { static char cdate[20] = ""; struct tm * current_tm; time_t current_time; time (¤t_time); current_tm = localtime (¤t_time); sprintf( cdate, "%d-%02d-%d",current_tm->tm_mon+1,current_tm->tm_mday,current_tm->tm_year-100+2000); return cdate; }
==================================================
Panickey Function
You want to make a Panickey Function in your d3d hack?
Us this code:
Code:if(panic) { if( GetAsyncKeyState( VK_CONTROL)) { if( GetAsyncKeyState( VK_SPACE)) { ExitGame(0); } } }
Credits [G]a[M]e[R]
==================================================
FPS
Code:/* #include */ #include <time.h> float fLastTickCount=0.0f; float fCurrentTickCount; char CH_FPS [20]; /* MENU[MENUMAXITEMS]; */ int CH_NoFPS=0; /* void RebuildMenu(void) */ MenuAddItem("Framerate:",(char **)CH_FPS,0,0,MENUTEXT); /* HRESULT WINAPI myPresent */ if(CH_FPS) { fCurrentTickCount=clock() * 0.001f; CH_NoFPS++; if((fCurrentTickCount - fLastTickCount)>1.0f) { fLastTickCount=fCurrentTickCount; sprintf(CH_FPS, "%d", CH_NoFPS); CH_NoFPS=0; } }
None of these are really creds to you..Just saying
Hell_Demon (03-18-2011)
Really by ME 100%
Should be posted in the snippets thread.
How in the world would this be useful to someone ?, By the way GAKS is Fugly, And this thread made me cry.
Seriously, Fugly code is Fugly D:, And anybody with common knowledge would implement these ideas more cutely than that..
Love You All~
"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
in C you have to declare using Struct before.
Struct <StructName> <varname>
C++:Code:struct Xpto { int test; }
Xpto *lalal;
C:
Struct Xpto *lala; //Otherwise: Error
Last edited by 'Bruno; 03-23-2011 at 08:22 AM.
Hell_Demon (03-23-2011),Melodia (03-23-2011),why06 (03-23-2011)
Oh thanks Brinuz. Learn something new everyday.
"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
'Bruno (03-23-2011),Hell_Demon (03-23-2011)
Won't work for crossfire Damn Xtrap
I love how people always think that if you just copy and paste some random code, it will work. It always makes me laugh.
"The best way to predict your future is to create it."
Contributions I made:
DirectX E-Books
Hacking Tools
Hacking into a PC
Need Help?
Send me a PM, or send me a email at : aanthonyz10@gmail.com
Click My Dragon:
These look familiar
https://www.mpgh.net/forum/207-combat...functions.html