command /team <text=%player%>[<player>]:
trigger:set{_p} to arg 2
arg 1 is not "wyrzuc" or "dodaj" or "usun" or "odejdz":
loop {team::*}:
loop-value is not text-arg:{teamName::%player%} is not set:set{teamName::%player%} to "%text-arg%"set{teamLeader::%{teamName::%player%}%} to "%player%"
add "%{teamName::%player%}%" to {team::*}
arg 2 is set:{teamName::%{_p}%} is not set:
add "%{_p}%" to {team::%{teamName::%player%}%::*}set{teamName::%{_p}%} to {teamName::%player%}set{t.%player%} to trueelse:
send "&8[&6Epi&cCraft&8] &aStworzyles team, &cale zaproszony gracz juz ma swoja!"else:
send "&8[&6Epi&cCraft&8] &cJuz Nalezysz do teamu!"elseif arg 1 is "wyrzuc":
arg 2 is set:{teamLeader::%{team::%{teamName::%player%}%}%} is player:{team::%{teamName::%player%}%::*} contains "%{_p}%":
remove "%{_p}%" from {team::%{teamName::%player%}%::*}
clear {teamName::%{_p}%}
size of {team::%{teamName::%player%}%::*} is 0:
clear {teamLeader::%{teamName::%player%}%}
clear {teamName::%player%}
clear {teamPlayers::%player%::*}set{t.%arg-2%} to falseelse:
send "&8[&6Epi&cCraft&8] &cPodaj nick gracza!"elseif arg 1 is "dodaj":
arg 2 is set:{teamName::%{_p}%} is not set:
add "%{_p}%" to {team::%{teamName::%player%}%::*}set{teamName::%{_p}%} to {teamName::%player%}set{t.%arg-2%} to trueelse:
send "&8[&6Epi&cCraft&8] &cGracz jest w innej druzynie!"else:
send "&cPodaj nick gracza!"elseif arg 1 is "odejdz":{teamLeader::%{teamName::%player%}%} is "%player%":
execute player command "/team usun"set{t.%player%} to falseelse:delete"%player%" from {teamPlayers::%{teamName::%player%}%::*}
clear {teamName::%player%}set{t.%player%} to false
command /debugTeams:
permission: teams.debug
trigger:
clear {teamName::*}
clear {team::*}
clear {teamLeader::*}
clear {teamPlayers::*}
Chciałbym Aby Ten Skript Działał, Jaki Do Tego Potrzeba Dodatek itp.
i żeby zmienna {t.%player%} dodawała się Kiedy Gracz Dołącza do drużyny i żeby usuwała się kiedy odchodzi z drużyny.
jeszcze, żeby ta sama drużyna nie mogła siebie atakować
o to tylko proszę z góry dzięki! ;D
Pytanie
piotrus131102 37
Chciałbym Aby Ten Skript Działał, Jaki Do Tego Potrzeba Dodatek itp.
z góry dzięki! ;D
Edytowane przez piotrus131102i żeby zmienna {t.%player%} dodawała się Kiedy Gracz Dołącza do drużyny i żeby usuwała się kiedy odchodzi z drużyny.
jeszcze, żeby ta sama drużyna nie mogła siebie atakować
o to tylko proszę
Odnośnik do komentarza
https://skript.pl/temat/17939-dru%C5%BCyny/Udostępnij na innych stronach
11 odpowiedzi na to pytanie
Rekomendowane odpowiedzi