• Хостинг игровых серверов

    Максимальная производительность для ваших игровых серверов!

    Заказать сейчас

Платное Life Support 2.2.6

### Developer Hooks
CanUseLifeSupport
Called when a player is about to die (or get into wounded state if enabled in options). Returning a non-null value (true is default) will prevent life support activation

JSON:
object CanUseLifeSupport(BasePlayer player)
Example of hook usage to prevent player from life saving

private object CanUseLifeSupport(BasePlayer player)
{
    if (playerList.ContainsKey(player.userID))
    {
        return true;
    }

    return null;
}