← Scripts y librerías
PateeerQ/samp-timelapse
Include to calculate the distance/gap between 2 UNIX timestamp
Herramienta★ 2actualizado ago 2024Sin licenciaSourcePawn
Abrir en GitHubEste repositorio no tiene archivo de licencia. Se puede leer, pero eso por sí solo no da permiso para reutilizarlo.
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
Esta página se genera con lo que GitHub publica sobre el repositorio. samp.directory no aloja el código. Informar de un problema con esta ficha