12-24-2010, 12:12
PHP Code:
void (__cdecl *SendToConsole)( int flag, char* text ) = (void (__cdecl *)( int, char* ))0x632210;
char *RandomNames[] =
{
"Adalbert",
"Adam",
"Agatha",
"Agnes",
"Albert",
"Alexander",
"Aleksandra",
"Alexis",
"Alphonsus",
"Aloysius",
"Ambrose",
"Anastasia",
"Balthasar",
"Barbara",
"Barnabas",
"Bartholomew",
"Basil",
"Benedict",
"Bernard",
"Bernadine",
"Bogimilus",
"Boleslaus",
"Bronislaus",
"David",
"Dolores",
"Dorothy",
"Edmund",
"Edward",
"Emiliana",
//...
};
bool Ignore = false;
bool ChangeNameRandom( )
{
char name[32];
int Num = 0;
for (; Num < (sizeof(RandomNames) / sizeof(char *)); Num++)
{
if( Ignore )
{
sprintf(name, "Toggle name %s\n", RandomNames[rand()%Num] );
SendToConsole( 0, name );
}
Ignore = true;
}
return Ignore;
}
PHP Code:
if (((timeGetTime() ) > 300) && GetAsyncKeyState(VK_F3)&1)
{
ChangeNameRandom( );
Ignore = false;
}
Credit:
King-OrgY