Respawn Protection

Protect fresh respawned players

Total Downloads: 1,081 - First Release: Jul 5, 2017 - Last Update: Feb 15, 2018

5/5, 2 likes
  1. ZLO

    ZLO

    @sami37

    Thank you so much!
    It's perfect :)
     
  2. ZLO

    ZLO

    Only one... bots with:
    Code:
    "Murderer": true,
    can still cause damage in PVE protection :)
    But they probably will soon be completely removed ^_^
    [DOUBLEPOST=1518715711][/DOUBLEPOST]replaced by scientists, but they do not know how to use a melee weapon :(
    [DOUBLEPOST=1518716265][/DOUBLEPOST]But no! It's a weapon, not a bot type! :D
    Any melee weapon bypasses defense! :)
     
    Last edited by a moderator: Feb 15, 2018
  3. ZLO

    ZLO

    String "Can't Hit" in lang file - Not applicable ^_^

    Instead, it produces a phrase in the default language, although I rule English!
    Writes anyway: "You can not hit this player until protection is left [...]"

    P.S. Even sometimes when killing a bot, he thinks that he shot a player, it's weird :)
     
  4. ZLO

    ZLO

    It turns out I was shooting at the building! And his own :(
    You can somehow disable or configure this functionality ...
    While just commented on this block. ^_^

    Code:
                    if (entity is BuildingBlock && attack != null && protectedPlayersList.ContainsKey(attack.userID))
                    {
                        protectedPlayersList.Remove(attack.userID);
                        if (Enabled)
                            SendReply(attack,
                                lang.GetMessage("NoLongerProtected", this, attack.UserIDString));
                        return;
                    }
     
    Last edited by a moderator: Feb 16, 2018
  5. sami37 updated Respawn Protection with a new update entry:

    1.2.8

     
  6. ZLO

    ZLO

    Yea, Great!!!

    Still, maybe for the future, keep the PVP / PVE status between plug-in / server reboots, because I do not see the plugin's data...
    For example, players who are not there before, are considered to be protected by default, as if they had just been respawn.
    And also, it is possible to somehow view your PVP / PVE status: a prefix or a chat command.
    Another minor problem with the protection from melee weapon bots...

    P.S. I apologize for perseverance, I just liked the plug ))
    Very simple in comparison with other analogues of the setting of PVP / PVE.
    Once again many thanks! :)
     
    Last edited by a moderator: Feb 16, 2018
  7. ZLO

    ZLO

    if you remove the PVE protection, then the bots and animals can not attack until they attack the player :(
     
  8. I only want the 2 pve messages to show up, and nothing else. Would this work?

    {
    "ProtectedPVE": "You have just respawned, you are protected for {0}s from pve.",
    "NoLongerProtectedNPC": "You are no longer protected from pve, take care.",
    "Cant Hit": "",
    "Protected": "",
    "NoLongerProtected": "",
    "TryKill": "",
    "Killed": "",
    "UserNotFound": "There is no player with this ID ({0})",
    "ProtectionRemoved": "",
    "NotProtected": ""
    }
     
  9. ZLO

    ZLO

    You still can not attack the bots until you attack the player: (((

    When Godmode Enable is on!
     
  10. Any one else getting this with other plugins too ?

    Code:
    (07:32:10) | Failed to call hook 'OnPlayerRespawned' on plugin 'Metabolism v2.6.1' (NullReferenceException: Object reference not set to an instance of an object)
      at Oxide.Plugins.Metabolism.OnPlayerRespawned (.BasePlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Metabolism.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00000] in <filename unknown>:0
    (07:32:10) | Failed to call hook 'OnPlayerRespawned' on plugin 'RespawnProtection v1.2.8' (NullReferenceException: Object reference not set to an instance of an object)
      at Oxide.Plugins.RespawnProtection.OnPlayerRespawned (.BasePlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.RespawnProtection.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00000] in <filename unknown>:0
    
    im getting mostle failed to call hook onplayerrespawned. any ideas wulf ? Also on metabolism.