You forgot some parts.. and maybe the addys are wrong.
Wait a sec..
Edit:
Add this after the fuction's sources:
Code:void HackThread() { for(;; ) { if(*ingame) { //add the ingame functions } if(*outgame) { //add the outgame functions } Sleep(200); } }