Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

Kod taki sam, a jedno działa drugie nie...


Mordassss

Rekomendowane odpowiedzi

Opublikowano

 

Czemu teleportuje tylko Gracza teamu B?

A gracza teamu A nie? wtf

Tam jest 2x loop all player nawet jak zostawie 1 to i tak nie działa :/

Cytat

command /dolacz:
    trigger:
        if {start.game} is true:
            send "Trwa rozgrywka"
        else:
            if {join.game::%player%} is true:
                send "Jestes juz w grze!"
            else:
                set {opusc} to location of player
                set {join.game::%player%} to true

                if {D.A} is true:
                    add player to {TeamB::*}
                    set {tA.%player%} to true
                    add 1 to {players.game}
                    add player to {playmsg::*}
                    set {D.A} to false
                    set {D.B} to true
                    edit tag of player to "&c[Team B]&r "
                    wait 3 tick
                    send "&4"
                    send "&4"
                    send "&4 Teleportowanie ...."
                    wait 2 tick
                    send "&4 %player% dolaczyl do gry! &r%{players.game}%&7/&r10" to {play.msg::*}
                    wait 5 tick
                    teleport player to {lobby}
                    add 1 diamond sword of sharpness 5 and fire aspect 2 named "&a&lTower" to player
                    add 1 enchanted golden apple to player
                    add 1 diamond helmet of protection 4 and unbreaking 3 named "&a&lTower" to player
                    add 1 diamond chestplate of protection 4 and unbreaking 3 named "&a&lTower" to player
                    add 1 diamond leggings of protection 4 and unbreaking 3 named "&a&lTower" to player
                    add 1 diamond boots of protection 4 and unbreaking 3 named "&a&lTower" to player
                    add 1 potion of:8259 to player
                    loop 30 times:
                        add 1 splash Health potion 2 to player
                    stop

                if {D.B} is true:
                    add player to {TeamA::*}
                    add 1 to {players.game}
                    add player to {play.msg::*}
                    set {tB.%player%} to true    
                    set {D.A} to true
                    set {D.B} to false
                    edit tag of player to "&3[Team A]&r "
                    wait 3 tick
                    send "&4"
                    send "&4"
                    send "&4 Teleportowanie ...."
                    wait 2 tick
                    send "&4 %player% dolaczyl do gry! &r%{players.game}%&7/&r10" to {play.msg::*}
                    wait 5 tick
                    teleport player to {lobby}
                    add 1 diamond sword of sharpness 5 and fire aspect 2 named "&a&lTower" to player
                    add 1 enchanted golden apple to player
                    add 1 diamond helmet of protection 4 and unbreaking 3 named "&a&lTower" to player
                    add 1 diamond chestplate of protection 4 and unbreaking 3 named "&a&lTower" to player
                    add 1 diamond leggings of protection 4 and unbreaking 3 named "&a&lTower" to player
                    add 1 diamond boots of protection 4 and unbreaking 3 named "&a&lTower" to player
                    add 1 potion of:8259 to player
                    loop 30 times:
                        add 1 splash Health potion 2 to player
                    stop


every 1 second:
    if {players.game} is 2:
        send "&2Za 5 sekund rozpocznie sie arena !" to {play.msg::*}
        send "Jestes &3Team A!" to {TeamA::*}
        send "Jestes &cTeam B!" to {TeamB::*}
        set {players.game} to 0
        set {D.A} to false
        set {D.B} to true
        set {frost} to true
        set {start.game1} to true
        set {start.game} to true
    if {start.game1} is true:
        set {start.game1} to false
        loop all players:
            if {tA.%loop-player%} is true:
                teleport loop-player to {spawn.A}
                set {frosty.%loop-player%} to location of loop-player
                wait 1 second
                send "&3Gra rozpocznie sie za 3" to loop-player
                wait 1 second
                send "&cGra rozpocznie sie za 2" to loop-player
                wait 1 second
                send "&5Gra rozpocznie sie za 1" to loop-player
                wait 1 second
                set {frost} to false
                send "&a&lStart!" to loop-player
                stop

        loop all players:
            if {tB.%loop-player%} is true:
                teleport loop-player to {spawn.B}
                set {frosty.%loop-player%} to location of loop-player
                wait 1 second
                send "&3Gra rozpocznie sie za 3" to loop-player
                wait 1 second
                send "&cGra rozpocznie sie za 2" to loop-player
                wait 1 second
                send "&5Gra rozpocznie sie za 1" to loop-player
                wait 1 second
                set {frost} to false
                send "&a&lStart!" to loop-player
                stop

command /opusc:
    trigger:
        if {join.game::%player%} is true:
            send "&c%player% opusil arene !" to {play.msg::*}
            set {frost} to false
            set {join.game::%player%} to false
            remove 1 from {players.game}
            remove player from {play.msg::*}
            remove player from {TeamA::*}
            remove player from {TeamB::*}
            set {tA.%player%} to false
            set {tB.%player%} to false
            clear player's inventory
            edit tag of player to ""
            teleport player to {opusc}
            wait 1 tick
            teleport player to {opusc}
            wait 1 tick
            teleport player to {opusc}
        else:
            send "Nie jestes w gierce ;)"

command /greset:
    trigger:
        send "&cReset"
        set {start.game} to false
        set {join.game::%player%} to false
        set {players.game} to 0
        set {D.A} to false
        set {D.B} to true
        set {frost} to false
        set {tA.%player%} to false
        set {tB.%player%} to false
        edit tag of player to ""
        clear {play.msg::*}
        clear {TeamA::*}
        clear {TeamB::*}
        clear player's inventory

command /ustaw [<text>]:
    trigger:
        if arg 1 is "lobby":
            set {lobby} to location of player
        if arg 1 is "spawnA":
            set {spawn.A} to location of player
        if arg 1 is "spawnB":
            set {spawn.B} to location of player
        if arg 1 is "watchA":
            set {watch.A} to location of player
        if arg 1 is "watchB":
            set {watch.B} to location of player

on any movement:
    if {frost} is true:
        add 1 to {warn.%player%}
        if {warn.%player%} is more than 15:
            send "&6Gra sie nie rozpoczela!"
            teleport player to {frosty.%player%}
            set {warn.%player%} to 0

on load:
    set {D.A} to false
    set {D.B} to true
    set {frost} to false
    set {start.game} to false
    clear {play.msg::*}
    clear {TeamA::*}
    clear {TeamB::*}
    set {players.game} to 0
 

Opublikowano

czemu 2 razy loopujesz graczy?

Cytat

        loop all players:
            if {tA.%loop-player%} is true:
                teleport loop-player to {spawn.A}
                set {frosty.%loop-player%} to location of loop-player
                wait 1 second
                send "&3Gra rozpocznie sie za 3" to loop-player
                wait 1 second
                send "&cGra rozpocznie sie za 2" to loop-player
                wait 1 second
                send "&5Gra rozpocznie sie za 1" to loop-player
                wait 1 second
                set {frost} to false
                send "&a&lStart!" to loop-player
                stop

        loop all players:
            if {tB.%loop-player%} is true:
                teleport loop-player to {spawn.B}
                set {frosty.%loop-player%} to location of loop-player
                wait 1 second
                send "&3Gra rozpocznie sie za 3" to loop-player
                wait 1 second
                send "&cGra rozpocznie sie za 2" to loop-player
                wait 1 second
                send "&5Gra rozpocznie sie za 1" to loop-player
                wait 1 second
                set {frost} to false
                send "&a&lStart!" to loop-player
                stop

zmien na;

        loop all players:
            if {tA.%loop-player%} is true:
                teleport loop-player to {spawn.A}
                set {frosty.%loop-player%} to location of loop-player
                wait 1 second
                send "&3Gra rozpocznie sie za 3" to loop-player
                wait 1 second
                send "&cGra rozpocznie sie za 2" to loop-player
                wait 1 second
                send "&5Gra rozpocznie sie za 1" to loop-player
                wait 1 second
                set {frost} to false
                send "&a&lStart!" to loop-player
                stop
            if {tB.%loop-player%} is true:
                teleport loop-player to {spawn.B}
                set {frosty.%loop-player%} to location of loop-player
                wait 1 second
                send "&3Gra rozpocznie sie za 3" to loop-player
                wait 1 second
                send "&cGra rozpocznie sie za 2" to loop-player
                wait 1 second
                send "&5Gra rozpocznie sie za 1" to loop-player
                wait 1 second
                set {frost} to false
                send "&a&lStart!" to loop-player
                stop

 

 

po co loopujesz tutaj, skoro mozesz dac od razu give 30

Cytat

                    loop 30 times:
                        add 1 splash Health potion 2 to player

                        give 30 splash Health potion 2 to player

 

 

 

JAVA <3

 

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...