Scripting/Server/Classes/Timer/Stop

Pause and resume.

Syntax

timer.Stop()
timer.Start()

Example

function onPlayerCommand( player, cmd, params )
{
	if ( cmd == "stop" )
	{
		// timer is a timer handle (see Timer)
		timer.Stop();
	}
}

This sample was generated from the signature – adapt the values to your gamemode.

Section: Timer

Categories: Server methods | Timer