Should work, never tested it ;D
Quote:
_beginthread(Autopot,0,NULL); // Nochmal danke an Zero den ollen Nubbl! :P
void Autopot()
{
cout << "Please insert maxHP" << endl;
int Delay;
Delay = 1300;
Dword maxhp;
cin maxhp;
if ( hp <= (maxhp*0.7))
{
MySendDetour(0x21,"d",MedID);
Sleep(Delay);
}
}