Bulundu Sınırlı Takım Skripti

  • Konuyu Başlatan Konuyu Başlatan iFrask
  • Başlangıç tarihi Başlangıç tarihi
  • Görüntüleme 581
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

iFrask

Odunlara Vur Vur Vur!
Katılım
27 Temmuz 2020
Mesajlar
34
Elmaslar
3
Puan
895
Yaş
25
Minecraft
iFrask

Discord:

iFrask

Rica Etsem sınırlı takım skripti yapabilir misiniz ? Sınırlıdan Kastım Lider Dahil 3 Kişi Katılabilicek örneğin
 
anladıgım kadarıyla takım skripti istiyorsanız eğer ögleyse büyük ihtimal kimse uğraşmaz
 
anladıgım kadarıyla takım skripti istiyorsanız eğer ögleyse büyük ihtimal kimse uğraşmaz
başka skriptler var zaten ben sadece sınırını nasıl ayarlayacağım bilmiyorum 0dan yapmanız değil o satır kodu lazım
 

Söz konusu bu takım sistemini yabancı bir kaynaktan buldum. Çeviri aracılığıyla dilimize çevirebilir ve sayıları da özgürce ayarlayabilirsiniz ;) <3
Kod:
on join:
    if {teamed1.%player%::list} isn't set:
        set {teamed1.%player%::list} to 0

command /team [<text>] [<offline player>]:
    permission: teams.use
    trigger:
        if arg 1 isn't set:
            send "&c&l&oTEAMS&7: &d&d/team invite (player)"
            send "&c&l&oTEAMS&7: &d&d/team leave (player)"
            send "&c&l&oTEAMS&7: &d&d/team join (player)"
            send "&c&l&oTEAMS&7: &d/team list"
            stop
        if arg 1 is "invite":
            if arg 2 is online:
                if arg 2 isn't player:
                    if {invited.%player%.%arg-2%} isn't set:
                        if {in.%arg 2%} isn't set:
                            if {in.%player%} isn't set:
                                send "&c&l&oTEAMS&7: &d&dYou have invited %arg 2% to join your team!"
                                send "&c&l&oTEAMS&7: &d&d%player% has invited you to be teamed, you have 60 seconds to do /team join %player%!" to arg 2
                                set {invited.%player%.%arg 2%} to true
                                wait 1 minute
                                if {invited.%player%.%arg 2%} is true:
                                    set {invited.%player%.%arg 2%} to false
                                    send "&c&l&oTEAMS&7: &d&d%player%'s invite has expired!" to arg 2
                                    send "&c&l&oTEAMS&7: &d%arg 2%'s invite has expired!" to player
                            else:
                                send "&c&l&oTEAMS&7: &d&dYou're already in a team!"
                        else:
                            send "&c&l&oTEAMS&7: &d&dThat player is already teamed!"
                    else:
                        send "&c&l&oTEAMS&7: &dYou have already invited that player in the last 60 seconds!"
                else:
                    send "&c&l&oTEAMS&7: &dCome on now... are you that lonely?"
            else:
                send "&c&l&oTEAMS&7: &d&d%arg 2% isn't online!"
        if arg 1 is "join":
            if arg 2 is set:
                if {invited.%arg 2%.%player%} is true:
                    if {in.%player%} isn't set:
                        if {teamed1.%arg 2%::*} is between 0 and 2:
                            send "&c&l&oTEAMS&7: &d&d %player% has joined your team!" to arg 2
                            send "&c&l&oTEAMS&7: &d&d You have joined %arg 2%'s team!" to player
                            add player to {teamedwith.%arg 2%::%player%}
                            add arg 2 to {teamedwith.%player%::%arg 2%}
                            add player to {teamed.%arg 2%::list}
                            add 1 to {teamed1.%arg 2%::list}
                            add 1 to {teamed1.%player%::list}
                            add 1 to {teamed1.%player%::list}
                            add 1 to {teamed1.%arg 2%::list}
                            set {ateam.%player%} to arg 2
                            set {ateam.%arg 2%} to player
                            add player to {teamed.%player%::list}
                            clear {invited.%arg 2%.%player%}
                            clear {invited.%player%.%arg 2%}
                            set {in.%player%} to true
                            set {in.%arg 2%} to true
                            set {team.%player%.%arg 2%} to true
                            set {team.%arg 2%.%player%} to true
                        else:
                            send "&c&l&oTEAMS&7: &d&dThere's already 2 people in that team!"
                    else:
                        send "&c&l&oTEAMS&7: &d&d You're already in a team!"
                else:
                    send "&c&l&oTEAMS&7: &d&d You haven't been invited by that player!"
            else:
                send "&c&l&oTEAMS&7: &d&d That isn't a player, or he's offline!"
        if arg 1 is "leave":
            if arg 2 is set:
                if {in.%player%} is true:
                    if {team.%player%.%arg 2%} is set:
                        send "&c&l&oTEAMS&7: &d&d%player% has left the team. ;(" to arg 2
                        send "&c&l&oTEAMS&7: &d&dYou have left the team." to player
                        clear {in.%arg 2%}
                        clear {in.%player%}
                        clear {team.%arg 2%.%player%}
                        clear {team.%player%.%arg 2%}
                        clear {teamedwith.%arg 2%::list}
                        clear {teamedwith.%player%::list}  
                        clear {teamed.%player%::list}
                        clear {invited.%player%.%arg 2%}
                        clear {invited.%arg 2%.%player%}
                        clear {ateam.%player%}
                        clear {ateam.%arg 2%}
                        clear {teamed.%player%::list}
                        set {teamed1.%player%::list} to 0
                        set {teamed1.%arg 2%::list} to 0
                    else:
                        send "&c&l&oTEAMS&7: &d&dYou're not teamed with %arg 2%!"
                else:
                    send "&c&l&oTEAMS&7: &d&dYou're not in a team!"
            else:
                send "&c&l&oTEAMS&7: &d&dPlease use /team leave (player)"
        if arg 1 is "list":
            if {in.%player%} is true:
                send "&c&l&oTEAMS&7: &DYou are teamed with &e%{ateam.%player%}%"
            else:
                send "&c&l&oTEAMS&7: &dYou're not in a team!"
On damage:
    if {team.%victim%.%attacker%} is true:
        cancel event
 
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

Hala Discord sunucumuza katılmadın mı?

Büyük bir topluluğun parçası ol, etkinliklere katıl ve özel hediyeler kazanma şansı yakala!

Şimdi Katıl
Üst