N1kk32 Posted July 17, 2022 Share Posted July 17, 2022 hello i made this combat wall skript and it works but if i get in combat im not able to enter the region for ever on damage: if attacker is a player: set {combat::%attacker's uuid%} to now set {combat::%victim's uuid%} to now on region enter: if region contains "smpspawn": if {combat::%player's uuid%} is set: set {_time} to difference between {combat::%player's uuid%} and now if {_time} < 15 seconds: send "&cYou can't enter spawn during combat" to player cancel event Link to comment Share on other sites More sharing options...
ItsF4 Posted July 21, 2022 Share Posted July 21, 2022 You need to indent properly on damage: if attacker is a player: set {combat::%attacker's uuid%} to now set {combat::%victim's uuid%} to now on region enter: if region contains "smpspawn": if {combat::%player's uuid%} is set: set {_time} to difference between {combat::%player's uuid%} and now if {_time} < 15 seconds: send "&cYou can't enter spawn during combat" to player cancel event Link to comment Share on other sites More sharing options...
Orakpo Posted August 6, 2022 Share Posted August 6, 2022 On 7/17/2022 at 7:36 PM, N1kk32 said: hello i made this combat wall skript and it works but if i get in combat im not able to enter the region for ever on damage: if attacker is a player: set {combat::%attacker's uuid%} to now set {combat::%victim's uuid%} to now on region enter: if region contains "smpspawn": if {combat::%player's uuid%} is set: set {_time} to difference between {combat::%player's uuid%} and now if {_time} < 15 seconds: send "&cYou can't enter spawn during combat" to player cancel event I've seen this used on HCF servers good to see someone made a skript of this Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now