Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › MultiPlayer Game Hacks & Cheats › Combat Arms Hacks & Cheats › Combat Arms Hack Coding / Programming / Source Code › [Release] Wait Class

[Release] Wait Class

Posts 1–7 of 7 · Page 1 of 1
LI
LightzOut
[Release] Wait Class
I originally coded this in Java, but i recoded it in C++ to use on gellin's base to recreate the font without causing lag.

So basically what this code does is it cause's the execution of certain code to be delayed, like the Sleep() function, but it doesn't cause the whole thread to pause, therefore there is no lag. It just takes the current system times, waits the ammount specified, and then lets execution of the method continue.

This code IS c/p friendly.


If your using this more generally (like not in gellin's base) then use this example.
EXAMPLE 1
Wait.h
Code:
#include <time.h>

class cWait{
	public:

	void wait(int waittime);
	void startWait();
	bool isWait();
};

extern class cWait Wait;
Wait.cpp
Code:
#include "Wait.h"

long waitin;
long t0, t1;

void cWait::wait(int waittime){
	waitin = waittime;
}

void cWait::startWait(){
	t0 = time(NULL) * 1000;
}

bool cWait::isWait(){
	t1 = time(NULL) * 1000;
	return (t1 - t0) < waitin;
}

If your using this class with gellin's base, then use this example.
EXAMPLE 2
Wait.h
Code:
#include <time.h>

class cWait{
	public:

	void startWait();
	bool isWait();
};

extern class cWait Wait;
Wait.cpp
Code:
#include "Wait.h"

long waitin = 20000;
long t0, t1;

void cWait::startWait(){
	t0 = time(NULL) * 1000;
}

bool cWait::isWait(){
	t1 = time(NULL) * 1000;
	return (t1 - t0) < waitin;
}

Then to add this to your RenderFrame.
Use (In Gellin's base)
Code:
if(!Wait.isWait()){
	this->UpdateFont(pDevice);
	Wait.startWait();
}

If you don't understand this code, or think it's worthless, let me know. Just trying to help lol.
#1 · 16y ago
IP
ipwnuuaal5
So this will activate the code even if I have sleep functions in the same thread?
#2 · 16y ago
Mr.Magicman
Mr.Magicman
Why would you need a sleep class??
#3 · 16y ago
MM
mmbob
Do you know what the point of a class is? So that you can have multiple instances of the same thing. You should make waitin, t0, and t1 members of the class.
#4 · 16y ago
Mr.Magicman
Mr.Magicman
Quote Originally Posted by mmbob View Post
Do you know what the point of a class is? So that you can have multiple instances of the same thing. You should make waitin, t0, and t1 members of the class.
Oh thanks i was to sleepy at my time of post
#5 · 16y ago
FI
Finish
Quote Originally Posted by mmbob View Post
Do you know what the point of a class is? So that you can have multiple instances of the same thing. You should make waitin, t0, and t1 members of the class.
yea i was thinkin the same thing.

if u have t0 and t1 outside like that. no matter how much u classes u make it will always be the same.

same thing for waittime
#6 · 16y ago
LI
LightzOut
Quote Originally Posted by Finish View Post
yea i was thinkin the same thing.

if u have t0 and t1 outside like that. no matter how much u classes u make it will always be the same.

same thing for waittime
Ya I realized that after I posted it. To lazy to update. It works fine if your using only one instance of it like in gellin's base. If you want to recode it go for it, that is the point of sharing. Java's classes are a bit different than C++'s so I wasn't exactly sure how to do it.
#7 · 16y ago
Posts 1–7 of 7 · Page 1 of 1

Post a Reply

Similar Threads

  • [RELEASE] No class change!By master131 in Call of Duty Modern Warfare 2 Server / GSC Modding
    3Last post 15y ago
  • i release the hack! waiting cubezen so long!By spectre1991 in Blackshot Hacks & Cheats
    31Last post 17y ago
  • LIVE UPDATE WAITING FOR NEW CROSSFIRE HACK[Release] Crossfire Hack working at 07/12/2By [MPG]aRrAiZe in CrossFire Hacks & Cheats
    15Last post 16y ago
  • finally i decided to release a charm hack and cross hair for noob wait for meBy karthani in CrossFire Hacks & Cheats
    12Last post 16y ago
  • [Release]Rainbow Crosshair ClassBy falzarex in C++/C Programming
    0Last post 16y ago

Tags for this Thread

None