diff --git a/doc/en/scripting/builtins/libplayer.md b/doc/en/scripting/builtins/libplayer.md index e235377a..fa799198 100644 --- a/doc/en/scripting/builtins/libplayer.md +++ b/doc/en/scripting/builtins/libplayer.md @@ -96,6 +96,15 @@ player.get_spawnpoint(playerid: int) -> number, number, number Spawn point setter and getter +```lua +player.is_suspended(pid: int) -> bool +player.set_suspended(pid: int, suspended: bool) +``` + +Setter and getter for the player's suspended status. + +When suspended, the entity is deleted and the player is disabled from the world simulation. + ```lua player.set_name(playerid: int, name: str) player.get_name(playerid: int) -> str diff --git a/doc/ru/scripting/builtins/libplayer.md b/doc/ru/scripting/builtins/libplayer.md index 35dda747..2228f42c 100644 --- a/doc/ru/scripting/builtins/libplayer.md +++ b/doc/ru/scripting/builtins/libplayer.md @@ -96,6 +96,15 @@ player.get_spawnpoint(playerid: int) -> number, number, number Сеттер и геттер точки спавна игрока +```lua +player.is_suspended(pid: int) -> bool +player.set_suspended(pid: int, suspended: bool) +``` + +Сеттер и геттер статуса "заморозки" игрока. + +При "заморозке" удаляется сущность, а игрок выключается из симуляции мира. + ```lua player.set_name(playerid: int, name: str) player.get_name(playerid: int) -> str