Skip to content

another attempt to Implement KashCheery's timerfix's features#1241

Open
Zorono wants to merge 2 commits into
openmultiplayer:masterfrom
Zorono:zorono@timers
Open

another attempt to Implement KashCheery's timerfix's features#1241
Zorono wants to merge 2 commits into
openmultiplayer:masterfrom
Zorono:zorono@timers

Conversation

@Zorono

@Zorono Zorono commented Jul 13, 2026

Copy link
Copy Markdown
Contributor
#define GetTimerRemainingTime GetTimerRemaining
native KillAllTimers();
native IsTimerRunning(Timer:timerid);
native IsTimerPaused(Timer:timerid);
native PauseTimer(Timer:timerid);
native ContinueTimer(Timer:timerid);
native GetTimerInterval(Timer:timerid);
native SetTimerInterval(Timer:timerid, interval);
native GetTimerRemaining(Timer:timerid);
native GetRunningTimersCount();

stock bool:ToggleTimerPause(Timer:timerid)
{
    if(!IsValidTimer(timmerid))
        return false;
        
    if(IsTimerPaused(timerid))
        ContinueTimer(timerid);
    else
        PauseTimer(timerid);
    
    return true;
}

this is a fork of @NoPressF 's #1087

TODO:

native AddTimerHandler(Timer:timerid, handler[]);
native RemoveTimerHandler(Timer:timerid, handler[]);
native SetTimerDelay(Timer:timerid, delay);

@AmyrAhmady

Copy link
Copy Markdown
Member
image

We provide a .bat file to format everything properly using clang formatter tool
please use that so you don't face such issues

@AmyrAhmady

Copy link
Copy Markdown
Member

Well you shouldn't have touched the SDK part for that file
your formatting issues were mostly for using spaces for tabs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants