SetPlayerRespawnTime: Difference between revisions

From Onset Developer Wiki
Kuzkay (talk | contribs)
No edit summary
28days (talk | contribs)
No edit summary
Line 6: Line 6:


{{FuncParameters}}
{{FuncParameters}}
{{FuncParam|player|Player ID}}
{{FuncParam|player|The player identifier.}}
{{FuncParam|mstime|Time in milliseoncds}}
{{FuncParam|mstime|Time in milliseconds.}}


{{FuncReturnValue|__EDIT_ME__}}
{{FuncReturnValue|This function returns nothing.}}


== Example ==
== Example ==
Line 20: Line 20:


{{RelatedFunctions}}
{{RelatedFunctions}}
__EDIT_ME__
* [[GetPlayerRespawnTime]]
* [[SetPlayerRespawnTime]]

Revision as of 14:12, 19 November 2019

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.

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