GetPlayerRespawnTime

From Onset Developer Wiki
Revision as of 14:14, 19 November 2019 by 28days (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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