Перейти к содержанию

SetAutoRespawnAfterDeath

Материал из RAGE MP Wiki Archive
Версия от 10:33, 12 декабря 2019; imported>Bonus (Created page with "Sets if players should be respawned automatically after dying (default: true). If you don't want the player to automatically respawn (for handling the respawn by yourself),...")
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

Sets if players should be respawned automatically after dying (default: true). If you don't want the player to automatically respawn (for handling the respawn by yourself), you should use this method with false.


void NAPI.Server.SetAutoRespawnAfterDeath(bool autoRespawnOn);

Parameters

  • autoRespawnOn: parameter input should be in bool type

Example

<syntaxhighlight lang="csharp"> NAPI.Server.SetAutoRespawnAfterDeath(false); </syntaxhighlight>