Witam, pomoże ktoś jak tutaj dodać żeby podczas tych 20 sekund nie można było wejść na region ,,spawn" tak, mam world guard Z góry dziękuje
on damage of player:
if attacker is a player:
if {al.%victim%} is not set:
set {al.%victim%} to false
if {al.%attacker%} is not set:
set {al.%attacker%} to false
if {al.%attacker%} is false:
if {al.%victim%} is false:
set {al.%attacker%} to true
set {al.%victim%} to true
set {al.c.%attacker%} to 0
set {al.c.%victim%} to 0
send "&cWalczysz z &6%attacker%! &cNie mozesz sie wylogowac przez 20 sekund!" to victim
send "&cWalczysz z &6%victim%! &cNie mozesz sie wylogowac przez 20 sekund!" to attacker
else:
set {al.c.%victim%} to 0
set {al.c.%attacker%} to 0
send "&cWalczysz z &6%victim%! &cNie mozesz sie wylogowac przez 20 sekund!" to attacker
set {al.%attacker%} to true
else:
set {al.c.%attacker%} to 0
set {al.c.%victim%} to 0
if {al.%victim%} is false:
send "&cWalczysz z &6%attacker%! &cNie mozesz sie wylogowac przez 20 sekund!" to victim
set {al.%victim%} to true
every 1 second:
loop all players:
if {al.%loop-player%} is true:
add 1 to {al.c.%loop-player%}
if {al.c.%loop-player%} is more than 20 or 20:
set {al.%loop-player%} to false
send "&2Zakonczyles walke. Mozesz sie wylogowac!" to loop-player
on quit:
if {al.%player%} is true:
kill player
set {al.%player%} to false
send "&cGracz &6%player% &cwylogowal sie podczas walki!" to all players
on death:
if {al.%player%} is true:
set {al.%player%} to false
on command:
if command is not "antylogout":
if {al.%player%} is true:
if player has permission "antylogout.admin":
stop
else:
cancel event
send "&cNie mozesz uzywac komend podczas walki!"
command /antylogout:
trigger:
if {al.%player%} is true:
send "&cNie mozesz sie wylogowac!"
else:
send "&aMozesz sie wylogowac"
Temat został zamknięty z powodu braku aktywności autora.
Pytanie
Salvador 1
Witam, pomoże ktoś jak tutaj dodać żeby podczas tych 20 sekund nie można było wejść na region ,,spawn" tak, mam world guard
Z góry dziękuje
on damage of player: if attacker is a player: if {al.%victim%} is not set: set {al.%victim%} to false if {al.%attacker%} is not set: set {al.%attacker%} to false if {al.%attacker%} is false: if {al.%victim%} is false: set {al.%attacker%} to true set {al.%victim%} to true set {al.c.%attacker%} to 0 set {al.c.%victim%} to 0 send "&cWalczysz z &6%attacker%! &cNie mozesz sie wylogowac przez 20 sekund!" to victim send "&cWalczysz z &6%victim%! &cNie mozesz sie wylogowac przez 20 sekund!" to attacker else: set {al.c.%victim%} to 0 set {al.c.%attacker%} to 0 send "&cWalczysz z &6%victim%! &cNie mozesz sie wylogowac przez 20 sekund!" to attacker set {al.%attacker%} to true else: set {al.c.%attacker%} to 0 set {al.c.%victim%} to 0 if {al.%victim%} is false: send "&cWalczysz z &6%attacker%! &cNie mozesz sie wylogowac przez 20 sekund!" to victim set {al.%victim%} to true every 1 second: loop all players: if {al.%loop-player%} is true: add 1 to {al.c.%loop-player%} if {al.c.%loop-player%} is more than 20 or 20: set {al.%loop-player%} to false send "&2Zakonczyles walke. Mozesz sie wylogowac!" to loop-player on quit: if {al.%player%} is true: kill player set {al.%player%} to false send "&cGracz &6%player% &cwylogowal sie podczas walki!" to all players on death: if {al.%player%} is true: set {al.%player%} to false on command: if command is not "antylogout": if {al.%player%} is true: if player has permission "antylogout.admin": stop else: cancel event send "&cNie mozesz uzywac komend podczas walki!" command /antylogout: trigger: if {al.%player%} is true: send "&cNie mozesz sie wylogowac!" else: send "&aMozesz sie wylogowac"Temat został zamknięty z powodu braku aktywności autora.
Notatka dodana przez TakiJakTy
Odnośnik do komentarza
https://skript.pl/temat/36547-zrobi-kto%C5%9B-do-tego-skryptu-zakaz-wchodzenia-na-spawn-antyrelog/Udostępnij na innych stronach
5 odpowiedzi na to pytanie
Rekomendowane odpowiedzi