SetPlayerRespawnTime

From Onset Developer Wiki
Revision as of 20:29, 13 November 2019 by Kuzkay (talk | contribs)
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
    Player ID
  • mstime
    Time in milliseoncds

Return Value

  • __EDIT_ME__

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

__EDIT_ME__