SetPlayerRespawnTime

From Onset Developer Wiki
Revision as of 11:21, 20 April 2021 by BlueMountains (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
SetPlayerRespawnTime

Type: Function
Context: Server
Introduced: v1.0

Description

Sets the time it takes for player to respawn after their death

Syntax

SetPlayerRespawnTime(player, mstime)

Parameters

  • player
    The player identifier.
  • mstime
    Time in milliseconds. Clamped from 1-36000000.

Return Value

  • This function returns nothing.

Example

--All players default Respawn time will be set to 30 seconds when they join the server
AddEvent("OnPlayerJoin", function (player)
	SetPlayerRespawnTime(player, 30000)
end)

See also