GetPlayerRespawnTime

From Onset Developer Wiki
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