GetPlayerRespawnTime: Difference between revisions
From Onset Developer Wiki
No edit summary |
No edit summary |
||
Line 11: | Line 11: | ||
== Example == | == Example == | ||
<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
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)