← Scripts and libraries
PateeerQ/samp-timelapse
Include to calculate the distance/gap between 2 UNIX timestamp
Tool★ 2updated Aug 2024No licenceSourcePawn
Open on GitHubThis repository has no licence file. It is public to read, but that alone does not give permission to reuse it.
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
This page is built from what GitHub publishes about the repository. samp.directory does not host the code. Report a problem with this listing