samp.directory
← Scripts and libraries

Ramon-Sd/RTimer

Library for easy timer use

Library★ 2updated May 2023No licencePawnsampctl
Open on GitHub

This repository has no licence file. It is public to read, but that alone does not give permission to reuse it.

Install with sampctl

sampctl package install Ramon-Sd/RTimer

Run this in your project folder. sampctl downloads the package and what it depends on.

Try it in the Pawn compiler →

Adds its include files, with the libraries it depends on, to the Pawn compiler in your browser, ready to include in a script.

Depends on 1 package

README.md

Library for easy timer use


  1. Installation

  2. Documentation


🚀 Installation

You can install the "RTimer" library in two ways:

  • Using sampctl: You can install the library using the sampctl package manager. Simply run the following command in the terminal:
sampctl package install Ramon-Sd/RTimer
  • Using Git: You can clone the library's Git repository and manually add it to your project. Run the following command in the terminal:
git clone https://github.com/Ramon-Sd/RTimer.git

Then, include the "RTimer.inc" include file in your code:

#include "RTimer.inc"

☕ Documentation

Functions

  • ...

Callbacks

  • ...

Example


#include "RTimer.inc"

DefTimer:PrintTest() {

    printf("Test");
    return 1;
}

public OnGameModeInit() {

    Timer_Set("PrintTest", 1000, true);
    return 1;
}

public OnGameModeExit() {

    Timer_Kill("PrintTest");
    return 1;
}

main() {

    printf("RTimer -> Test Script : Started!");
    return 0;
}

This project is licensed. See the LICENSE file for more details.

easy-to-useincludelibraryopen-mppacakgesa-mpsa-mp-librarysa-mp-serversampctlsan-andreas-multiplayertimer

This page is built from what GitHub publishes about the repository. samp.directory does not host the code. Report a problem with this listing

Ramon-Sd/RTimer: SA-MP Library | samp.directory