thread in c++

Posts 1–4 of 4 · Page 1 of 1
thread in c++
Hey guys, finish my first hack, it works nice, just have one problem:

It is external, has bhop (i'll take it off bcuz of overwatch), chams, trigger, radar, autopistol, RCS and a shit that makes player glow when i'm aiming at him, well, thats the problem: i call it by simple function call, like
Code:
		if (hacks[0]) bunHop();
		if (hacks[1]) TriggerBot(legit);
		if (hacks[2]) autoPistol();
		if (hacks[3]) radarHack();
		if (hacks[4]) chams();
		if (hacks[5]) RCS();
		if (hacks[6]) GlowInCh();
and the problem is: if i active all hacks it works very slow, like 1seg deleay in each bhop jump, 2 sec delay for trigger, 2 sec delay for aim glow, and that shit

I saw some sources that use thread, it makes the hack run smooth? if yes, how to adapt my hack for use them? otherwise, how do i make my hack run smooth?

PS: my hack its made by a big while(1) loop and all the functions calls are inside the loop
You can include thread and make it with multithreading, creating a thread with the std::thread threadname(void Statfunc);
and then detach it with threadname.detach();
And in the new thread you do something like while(running) so that you can exit that tread by just making running false
Been over a week since last update/bump after answers, assuming solved.

/Closed.
Posts 1–4 of 4 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us