• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Compiling Exhaust in C++

MeNi

*^#%$%
Joined
Jul 23, 2008
Messages
183
Reaction score
12
Hi, i want to add exhaust to for example function in C++. I want it to be player exhaust, not global exhaust. So for example:


Code:
if (!player-isexhausted(exhaustid)){
doAction
player-AddExhaustTime(exhaustid,100ms)
}
else
{
// nothing
}

So, one player can execute certain action only once 100ms. Sorry for chaotic post, but can somebody help me with that?
 
Back
Top