cheat-engine/example scripts/step10.CEC
cheatengine@gmail.com 4d297adfd2
2011-07-04 19:52:19 +00:00

15 lines
No EOL
254 B
Text

#include <time.h>
#include <string.h>
char sec[50];
#define addresstochange 0x2d40000
struct tm *timep;
time_t c;
c=time(0);
timep=localtime(&c);
if (timep->tm_sec>=30)
*(int *)addresstochange=1000;
else
*(int *)addresstochange=2000;