Skip to main content

SetAutoRespawnAfterDeath

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.

C#​

void NAPI.Server.SetAutoRespawnAfterDeath(bool autoRespawnOn);

Parameters​

  • autoRespawnOn: parameter input should be in bool type

Example​

NAPI.Server.SetAutoRespawnAfterDeath(false);