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

SetAutoRespawnAfterDeath

Материал из RAGE MP Wiki Archive

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>