GetPlayerRespawnTime: Difference between revisions

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


== Example ==
== Example ==
__EDIT_ME__
<syntaxhighlight lang="Lua">
AddCommand("respawntime", function(playerid)
    AddPlayerChat(playerid, "Your respawn time is: "..GetPlayerRespawnTime(playerid).." ms.")
end)
</syntaxhighlight>


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

Latest revision as of 14:14, 19 November 2019

GetPlayerRespawnTime

Type: Function
Context: Server
Introduced: v1.0

Description

Get the player's respawn time set with SetPlayerRespawnTime.

Syntax

GetPlayerRespawnTime(player)

Parameters

  • player
    The player identifier.

Return Value

  • Returns the respawn time in milliseconds.

Example

AddCommand("respawntime", function(playerid)
    AddPlayerChat(playerid, "Your respawn time is: "..GetPlayerRespawnTime(playerid).." ms.")
end)

See also