Types 1

Type Description
Timer

Any of the following prototypes will work for a timed function.

Forwards 1

Function Description
OnMapTimeLeftChanged

Notification that the map's time left has changed via a change in the time limit or a change in the game rules (such as mp_restartgame). This is useful for plugins trying to create timers based on the time left in the map.

Functions 10

Function Description
CreateDataTimer

Creates a timer associated with a new datapack, and returns the datapack.

CreateTimer

Creates a basic timer. Calling CloseHandle() on a timer will end the timer.

ExtendMapTimeLimit

Extends the map time limit in a way that will notify all plugins.

GetMapTimeLeft

Returns an estimate of the time left before the map ends. If the server has not processed any frames yet (i.e. no players have joined the map yet), then the time left returned will always be infinite.

GetMapTimeLimit

Retrieves the current map time limit. If the server has not processed any frames yet (i.e. no players have joined the map yet), then the time limit returned will always be 0.

GetTickedTime

Returns the simulated game time.

GetTickInterval

Returns the number of seconds in between game server ticks.

IsServerProcessing

Returns whether or not the server is processing frames or not.

KillTimer

Kills a timer. Use this instead of CloseHandle() if you need more options.

TriggerTimer

Manually triggers a timer so its function will be called.