command /druzyna [<text>]:
trigger:
if arg 1 is not set:
send "&2Aby wybrać drużynę &BBlue &2wpisz /druzyna &Bblue"
send "&2Aby wybrać drużynę &cRed &2wpisz /druzyna &cRed"
else if arg 1 is set:
if {wybor::%player%} is true:
if arg 1 is "blue":
set {blue::%player%} to true
set {wybor::%player%} to false
send "&eJestes teraz w druzynie &bBLUE"
send "&eGRACZ %PLAYER% DOLACZYL DO SOJUSZU BLUE" to all players
stop
if arg 1 is "red":
set {red::%player%} to true
set {wybor::%player%} to false
send "&eJestes teraz w druzynie &cRED"
send "&eGRACZ %PLAYER% DOLACZYL DO SOJUSZU RED" to all players
stop
else:
send "&cMASZ JUZ DRUZYNE"
on first join:
send "&7Aby wybrac team wpisz /druzyna"
on join:
if {wybor.druzyna::%player%} is true:
send "&7Aby wybrac team wpisz /druzyna"
on damage:
if attacker is player:
if victim is player:
if {blue::%victim%} is true:
if {blue::%attacker%} is true:
cancel event
send "&cTen gracz pochodzi z twojego sojuszu" to attacker
if {red::%victim%} is true:
if {red::%attacker%} is true:
cancel event
send "&cTen gracz pochodzi z twojego sojuszu" to attacker
Pytanie
Poter2003 8
Witam mam problem bo po wpisaniu komendy ./druzyna blue nie moge przejsc do druzyny red i na odwrot oto kod:
variables:
Edytowane przez Poter2003{blue::%player%} = false
{red::%player%} = false
{wybor::%player%} = true
command /druzyna [<text>]:
trigger:
if arg 1 is not set:
send "&2Aby wybrać drużynę &BBlue &2wpisz /druzyna &Bblue"
send "&2Aby wybrać drużynę &cRed &2wpisz /druzyna &cRed"
else if arg 1 is set:
if {wybor::%player%} is true:
if arg 1 is "blue":
set {blue::%player%} to true
set {wybor::%player%} to false
send "&eJestes teraz w druzynie &bBLUE"
send "&eGRACZ %PLAYER% DOLACZYL DO SOJUSZU BLUE" to all players
stop
if arg 1 is "red":
set {red::%player%} to true
set {wybor::%player%} to false
send "&eJestes teraz w druzynie &cRED"
send "&eGRACZ %PLAYER% DOLACZYL DO SOJUSZU RED" to all players
stop
else:
send "&cMASZ JUZ DRUZYNE"
on first join:
send "&7Aby wybrac team wpisz /druzyna"
on join:
if {wybor.druzyna::%player%} is true:
send "&7Aby wybrac team wpisz /druzyna"
on damage:
if attacker is player:
if victim is player:
if {blue::%victim%} is true:
if {blue::%attacker%} is true:
cancel event
send "&cTen gracz pochodzi z twojego sojuszu" to attacker
if {red::%victim%} is true:
if {red::%attacker%} is true:
cancel event
send "&cTen gracz pochodzi z twojego sojuszu" to attacker
Odnośnik do komentarza
https://skript.pl/temat/21674-druzyny-pomocy/Udostępnij na innych stronach
3 odpowiedzi na to pytanie
Rekomendowane odpowiedzi