Chalwk

Timer (library)

This script provides a simple set of timer functions for use in other scripts.

 

Simply require this script in your script to use the following functions:
timer:new()
timer:start()
timer:stop()
timer:pause()
timer:resume()
timer:get()

 

Place this script in the server's root directory.
See 'Example-Script' for demo usage.

 

Example-Script.lua

sapp-timer-library.lua

 

Edit:

In the description for the example script, it says that it prints the elapsed time a player has been alive.

Just to clarify, what it's actually doing is calculating the total time someone has spent alive for the lifetime of that game.

Edited by Chalwk
Enclusion, Takka and Java like this

- I invite you to join my Halo Discord Server.

- Add me on discord: Chalwk#9284
- HSP Repo

- HSP Repo Wiki (new)

Share this post


Link to post
Share on other sites

Tiddy-bits:

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
  • Recently Browsing   0 members

    No registered users viewing this page.