Skocz do zawartości
  • 0

SZANSE MINIGRA


Poter2003
 Udostępnij

Pytanie

Siema cos mi sie zepsuło ze 50% jest szansy na zombie i 50% do ludzi i nie wysyła komunikatu zaznaczyłem kolorem czerwonym

every 5 seconds:
    {splegg.arena.playernum} is more than 1:
        {splegg.arena.mode} is 0:
            {splegg.arena.startmessage} is false:
                loop players in world "arena":
                    set {splegg.arena.startmessage} to true
                    broadcast "&7[&cSplegg&7]: &eArena wystartuje za &c10 &esekund!" to "arena"
                    wait 5 seconds
                    broadcast "&7[&cSplegg&7]: &eArena wystartuje za &c5 &esekund!" to "arena"
                    wait 1 seconds
                    broadcast "&7[&cSplegg&7]: &eArena wystartuje za &c4 &esekund!" to "arena"
                    wait 1 seconds
                    broadcast "&7[&cSplegg&7]: &eArena wystartuje za &c3 &esekund!" to "arena"
                    wait 1 seconds
                    broadcast "&7[&cSplegg&7]: &eArena wystartuje za &c2 &esekund!" to "arena"
                    wait 1 seconds
                    broadcast "&7[&cSplegg&7]: &eArena wystartuje za &c1 &esekund!" to "arena"
                    wait 1 seconds
                    {splegg.arena.playernum} is more than 1:
                        broadcast "&7[&cSplegg&7]: &bPowodzenia!" to "arena"
                        execute console command "arenateleport"
                        set level of loop-player to 0
                        chance of 50%:
                        set {zombie.%player%}
                        send "Jestes zombie"
                        chance of 50%:
                        send "jestes czlowiekiem"
                        set {ludzie.%player%}
                        set {splegg.arena.splegggun} to true
                        set {splegg.arena.mode} to 2
                        stop
                    else:
                        broadcast "&7[&cSplegg&7]: &cNie odpowiednia ilosc graczy do startu gry!" to "arena"
                        set {splegg.arena.startmessage} to false
                        stop

//poprawiam formatowanie ~reedzev

Edytowane przez Reedzev_
XD
Odnośnik do komentarza
Udostępnij na innych stronach

6 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
1 godzinę temu, bvcz napisał:

Spk dzk al co jest zle w tym 

Bo chce zeby graczom z zombie i ludzi wyswietliło sie osobne title lap tu kod i ja

every 5 seconds:
    {splegg.arena.playernum} is more than 1:
        {splegg.arena.mode} is 0:
            {splegg.arena.startmessage} is false:
                set {splegg.arena.startmessage} to true

               loop players in world "arena":
                broadcast "&7[&cSplegg&7]: &eArena wystartuje za &c10 &esekund!" to "world"
                wait 5 seconds
                broadcast "&7[&cSplegg&7]: &eArena wystartuje za &c5 &esekund!" to "world"
                wait 1 seconds
                broadcast "&7[&cSplegg&7]: &eArena wystartuje za &c4 &esekund!" to "world"
                wait 1 seconds
                broadcast "&7[&cSplegg&7]: &eArena wystartuje za &c3 &esekund!" to "world"
                wait 1 seconds
                broadcast "&7[&cSplegg&7]: &eArena wystartuje za &c2 &esekund!" to "world"
                wait 1 seconds
                broadcast "&7[&cSplegg&7]: &eArena wystartuje za &c1 &esekund!" to "world"
                {splegg.arena.playernum} is more than 1:
                    broadcast "&7[&cSplegg&7]: &bPowodzenia!" to "world"
                    execute console command "arenateleport"
                    chance of 100%:
                    set {player.zombie.%player%} to true
                    send player title "&4&LZE" with subtitle "&7Jestes zombie!" for 3 seconds
                    chance of 80%:
                    send player title "&4&LZE" with subtitle "Jestes w druzynie OCALAŁYCH" for 5 seconds
                    set {player.ludzie.%LOOP-player%} to true
                    set level of loop-player to 0
                    set {splegg.arena.splegggun} to true
                    set {splegg.arena.mode} to 2
                    stop
                else:
                    broadcast "&7[&cSplegg&7]: &cNie odpowiednia ilosc graczy do startu gry!" to "world"
                    set {splegg.arena.startmessage} to false
                    stop

Edytowane przez Poter2003
Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
W dniu 18.03.2018 o 14:48, SernickLOL napisał:

powinno dzialac

 

Mam tez z else ale nw czm to nie działa

 

every 5 seconds:
    {splegg.arena.playernum} is more than 1:
        {splegg.arena.mode} is 0:
            {splegg.arena.startmessage} is false:
                loop players in world "world":
                    set {splegg.arena.startmessage} to true
                    broadcast "&7[&cSplegg&7]: &eArena wystartuje za &c10 &esekund!" to "world"
                    wait 5 seconds
                    broadcast "&7[&cSplegg&7]: &eArena wystartuje za &c5 &esekund!" to "world"
                    wait 1 seconds
                    broadcast "&7[&cSplegg&7]: &eArena wystartuje za &c4 &esekund!" to "world"
                    wait 1 seconds
                    broadcast "&7[&cSplegg&7]: &eArena wystartuje za &c3 &esekund!" to "world"
                    wait 1 seconds
                    broadcast "&7[&cSplegg&7]: &eArena wystartuje za &c2 &esekund!" to "world"
                    wait 1 seconds
                    broadcast "&7[&cSplegg&7]: &eArena wystartuje za &c1 &esekund!" to "world"
                    wait 1 seconds
                    {splegg.arena.playernum} is more than 1:
                        broadcast "&7[&cSplegg&7]: &bPowodzenia!" to "world"
                        execute console command "arenateleport"
                        chance of 50%:
                            send "Jestes zombie" to loop-player
                            stop
                        else:
                            send "jestes czlowiekiem" to loop-player
                            stop
                        set {splegg.arena.mode} to 2
                        stop
                    else:
                        broadcast "&7[&cSplegg&7]: &cNie odpowiednia ilosc graczy do startu gry!" to "world"
                        set {splegg.arena.startmessage} to false
                        stop
W dniu 18.03.2018 o 14:48, SernickLOL napisał:

powinno dzialac

 

Nie działa

Nic nie wyświetla

//poprawiam formatowanie i błędy ortograficzne ~Reedzev_

Edytowane przez Reedzev_
Odnośnik do komentarza
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...