Jump to content

anti killing nakeds skript


centralwtf
 Share

Recommended Posts

Hello!
Can someone make a skript, that blocks people from hitting eachother if they did not ever had armor in equipment? However if they had armor in equipment or enderchest people can hit them aswell as they can hit others. And if they dropped armor on ground, they can still get hit and hit others

Thanks ❤️

 

on damage:
    if attacker is a player:
        if victim is not wearing any armor:
            if victim's inventory doesn't contain armor:
                if victim's enderchest doesn't contain armor:
                    cancel event

on damage:
    if attacker is a player:
        if attacker's inventory does not contain armor:
            cancel event
        
That is my current skript

Edited by centralwtf
Edit
Hello!
IGN✦ centralwtf
Gender★ he/him
==========================================

Owner★ Boxable, NetherBox, FishHype

 ==========================================

Joined★ 22.07.2019

Member -> VIP ★ 29.04.2020

 ==========================================

obraz_2021-04-08_103028.png.8fa96840c599c6ff81febf732163163f.png

 

 

Link to comment
Share on other sites

  • 2 weeks later...

1 second making one But, you know you can check the players armor?

Skripter & Manager
---------
Have been skripting for 4 years.
Managed around 15-30 servers that avrg 15-30+ Players.
Have owned around 20 servers.

----------

Currently Develop for (3) Servers
My development discord: https://discord.gg/XQyYt6U

[PRO] RANK

Helpful Stuff:
Applications and Reports  - Here | Minehut  Global And forums rules - Here

Link to comment
Share on other sites

on damage:
    set victim's chestplate to {_c}
    if {_c} is "<none>":
        set victim's leggings to {_l}
        if {_l} is "<none>":
            set victim's boots to {_b}
            if {_b} is "<none>":
                set victim's helmet to {_h}
                if {_h} is "<none>":
                    cancel event 

on damage:
    set attacker's chestplate to {_c}
    if {_c} is "<none>":
        set attacker's leggings to {_l}
        if {_l} is "<none>":
            set attacker's boots to {_b}
            if {_b} is "<none>":
                set attacker's helmet to {_h}
                if {_h} is "<none>":
                    cancel event 

Btw this is not tested so you will have to test and if its broken fix it ;D

Skripter & Manager
---------
Have been skripting for 4 years.
Managed around 15-30 servers that avrg 15-30+ Players.
Have owned around 20 servers.

----------

Currently Develop for (3) Servers
My development discord: https://discord.gg/XQyYt6U

[PRO] RANK

Helpful Stuff:
Applications and Reports  - Here | Minehut  Global And forums rules - Here

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share



×
×
  • Create New...