Jump to content

[Plugin] Timer Fix


Arabu
 Share

Recommended Posts

Timer Fix v1.0


Description
This plugin makes timers more accurate

Natives

native SetTimer(funcname[], interval, bool:repeat); 
native SetTimerEx(funcname[], interval, bool:repeat, const format[], {Float,_}:...); 
native KillTimer(const id); 
native KillAllTimers(); 
native IsValidTimer(timerid); 
native GetTimerInterval(timerid); 
native SetTimerInterval(timerid, interval);  

Example


#include <timerfix> 

new num = 0;
new timer; 

main() {
  timer = SetTimer("callback",1000,true)
} 

forward callback();
public callback() {
  if(++num >= 5) {
    if(IsValidTimer(timer)) KillTimer(timer);
    SetTimerEx("callbackEx",1000,false,"d",num);
  }
} 

forward callbackEx(num);
public callbackEx(num) {
  printf("Num: %d",num);
  KillAllTimers();
}  

Also
Report about all problems here in the form of a post or create a issue on the GitHub
All errors are written to timerfix_log.txt


Download :

Link 1:

This is the hidden content, please

Link 2:

This is the hidden content, please

 

Cu placere pentru plugin!

 

vldgIri.png

YouTube : Click Redirect Channel

Discord : Arabu#9330

Canal Discord : Click To Join

Facebook : Click Facebook

Instagram : Click Instagram

Skype : Mita.Official

Așteptăm jucatorii de PUBG Mobile și pe serverul de Discord PUBG Mobile România!

Join PUBGM România

Respectă și vei fi respectat !

 

 

 

 

Link to comment
Share on other sites

Multumim, chiar aveam nevoie.

    _________________________________________________
    |                                                        _________             |
    |    |    /          /|        |\            |      /                   \          |
    |    |  /        /   |          |  \          |      |                              |
    |    |/       /     |           |    \        |      |                              |   
    |    |\              |           |      \      |      |        _____            |
    |    |  \            |           |        \    |      |                 \           |
    |    |    \          |           |          \  |      |                   |          |
    |    |      \        |           |            \|      \_________/           |
    |_______________________________________________|

Link to comment
Share on other sites

  • 4 weeks later...
  • 4 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...