Witam mam problem z skript, chciałem osiągnąć żeby gracz mógł włączać i wyłączać pvp
Tutaj jest cały kod :
variables:
{ochrona::%player%} = false
on first join:
set {ochrona::%player%} to true
send "&fPvP dla ciebie jest wylaczone, wpisz komede /pvp"
on damage:
if {ochrona::%player%} is true:
cancel event
send "PVP &jest nie aktywne"
if {ochrona::%player%} is true:
cancel event
if {ochrona.gracz.%attacker%} is true:
message "" to atacker
else:
send "&7Nie mozesz zaatakowac &7%victim%&7 poniewaz ma ochrone" to attacker
command /pvp [<text>]:
trigger:
arg 1 is not set:
send ""
send "&f/pvp on - &a&lAktywne"
send "&f/pvp off - &c&lNieaktywne"
send ""
arg 1 is "on":
send " &aPVP &fjest aktywne"
set {ochrona::%player%} to false
arg 1 is "off":
send " &aPVP &fjest nieaktywne"
set {ochrona::%player%} to true
Pytanie
PLEnderPL 2
Witam mam problem z skript, chciałem osiągnąć żeby gracz mógł włączać i wyłączać pvp
Tutaj jest cały kod :
variables:
{ochrona::%player%} = false
on first join:
set {ochrona::%player%} to true
send "&fPvP dla ciebie jest wylaczone, wpisz komede /pvp"
on damage:
if {ochrona::%player%} is true:
cancel event
send "PVP &jest nie aktywne"
if {ochrona::%player%} is true:
cancel event
if {ochrona.gracz.%attacker%} is true:
message "" to atacker
else:
send "&7Nie mozesz zaatakowac &7%victim%&7 poniewaz ma ochrone" to attacker
command /pvp [<text>]:
trigger:
arg 1 is not set:
send ""
send "&f/pvp on - &a&lAktywne"
send "&f/pvp off - &c&lNieaktywne"
send ""
arg 1 is "on":
send " &aPVP &fjest aktywne"
set {ochrona::%player%} to false
arg 1 is "off":
send " &aPVP &fjest nieaktywne"
set {ochrona::%player%} to true
Odnośnik do komentarza
https://skript.pl/temat/22544-pvp-onoff/Udostępnij na innych stronach
7 odpowiedzi na to pytanie
Rekomendowane odpowiedzi