SetPlayerRespawnTime: Difference between revisions
From Onset Developer Wiki
No edit summary |
No edit summary |
||
Line 7: | Line 7: | ||
{{FuncParameters}} | {{FuncParameters}} | ||
{{FuncParam|player|The player identifier.}} | {{FuncParam|player|The player identifier.}} | ||
{{FuncParam|mstime|Time in milliseconds.}} | {{FuncParam|mstime|Time in milliseconds. Clamped from 1-36000000.}} | ||
{{FuncReturnValue|This function returns nothing.}} | {{FuncReturnValue|This function returns nothing.}} |
Latest revision as of 11:21, 20 April 2021
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)