samp.directory
← Skrypty i biblioteki

PateeerQ/samp-timelapse

Include to calculate the distance/gap between 2 UNIX timestamp

Narzędzie★ 2zaktualizowano sie 2024Brak licencjiSourcePawn
Otwórz na GitHubie

To repozytorium nie ma pliku licencji. Jest publiczne do odczytu, ale samo to nie daje pozwolenia na ponowne użycie.

README.md

SAMP Timelapse

Timelapse Function - Easy to use

Function

// Function
GetTimelapse(start, end)
IsTimePassed(time)

Example How to use

GetTimelapse

#include <P_Timelapse.inc>

main ()
{
    new var = gettime() + 60, // var is 60 seconds
        var2 = gettime() + 120; // var2 is 120 seconds

    printf("%s", GetTimelapse(var, var2));
    // This thing will print gap between 2 UNIX timestamp (var & var2)
}

IsTimePassed

#include <P_Timelapse.inc>

main ()
{
    new var = gettime() + 5;
    printf("%s", (IsTimePassed(var)) ? ("Passed") : ("Not Passed");
    // This thing will print is Time passed or not
}

gettimepawnsamptimelapsetimestampunix

Ta strona jest zbudowana z tego, co GitHub publikuje o repozytorium. samp.directory nie hostuje kodu. Zgłoś problem z tym wpisem