[SK] Yardım

jackjapool

Kömür Madencisi
En iyi cevaplar
0
Hayırlı Akşamlar Arkadaşlar
Uzun Zamandır Bi MiniGame Skripti Üzerinde Çalışıyorum Fakat Daha Hala Oyuna Katılım Aşamasındayım Bi Sorun Çıktı O Sorunu Düzeltemedim
Kodladığım Skriptde Oyuncu Sayısı 2 Ye Ulaştığı Zaman Herkezi Farklı Takımlara Atacak Mavi İse Mavi Takım Spawn ATacak Sarı İse Sarıların Spawna Fakat Kodladığım Skriptde Herkezi Sarıya Atıyor Yardımcı Olursanız Sevinirim
PHP:
on login:
    if {oyunsb.%player%} is not set:
        set {oyunsb.%player%} to false
       
every second:
    execute console command "/deneme"

on rightclick on sign:
    if line 1 of block is "&9&lOyun":
        if line 2 of block is "":
            if line 3 of block is "&6&lKatıl":
                if line 4 of block is "&4&lYün Savaşı":       
                    if {oyundurum} is false:
                        if {oyunbs.%player%} is false:
                            wait 1 tick
                            add 1 to {osays}
                            wait 1 tick
                            set line 3 of block at {oyuncuTabelasi} to "%{osays}%"
                            set {oyunbs.%player%} to true
                            send "&cOyuna Katıldın.2 Oyuncuya Ulaşırsa Oyun Başlar." to player
                            add player to {oyuncularsss::*}
                            loop {oyuncularsss::*}:
                                wait 1 second
                                send "&6&l%{osays}% &cOyuncu Katılmış" to loop-value
                                wait 1 second
                                if {osays} is equal to 2:
                                    set {oyundurum} to true
                                    set {oyunbs.%loop-value%} to true
                                    wait 2 second
                                    send "&cOyun Başlıyor." to loop-value
                                    wait 2 second
                                    set {sari} to a random element out of {oyuncularsss::*}
                                    remove {sari} from {oyuncularsss::*}
                                    send "&cSarı Takım Oldun" to {sari}
                                    teleport {sari} to {sarilocs}
                                    set {old.%player%} to true
                                    if {old.%player%} is not set:
                                        set {mavi} to a random element out of {oyuncularsss::*}
                                        remove {mavi} from {oyuncularsss::*}
                                        teleport {mavi} to {mavilocs}
                                        send "&cMavi Takım Oldun" to {mavi}
                                        send "&c&lOyun Başladı.Başarılar!" to {sari} and {mavi}
                    else:
                        send "&c&lOyun Başlamış Durumda" to player
                       
on sign change:
    if line 2 is "&4&lOyuncu":
        set line 3 to "&9%{osays}%"
        set {oyuncuTabelasi} to location of event-block
                       
command /sbk:
    trigger:
        send "%{oyuncularsss::*}%" to player
        remove player from {oyuncularsss::*}
        set {oyunbs.%player%} to false
        set {osays} to 0
        delete {old.%player%}
        set {oyundurum} to false
       
command /deneme:
    trigger:
        set line 3 of block at {oyuncuTabelasi} to "%{osays}%"
       
command /yayar <text>:
    trigger:
        if arg-1 is "boda":
            set {bodalocs} to location of player
            send "&cBekleme Lobisi Ayarlandı." to player
        if arg-1 is "sari":
            set {sarilocs} to location of player
            send "&cSarilar Icin Oyun Başlama Yeri Ayarlandi" to player
        if arg-1 is "mavi":
            set {mavilocs} to location of player
Kod Budur Yardımcı Olursanız Sevinirim
 

BadActive

Kızıltaş Madencisi
En iyi cevaplar
0
Kod:
if {old.%player%} is not set:
                                        set {mavi} to a random element out of {oyuncularsss::*}
                                        remove {mavi} from {oyuncularsss::*}
                                        teleport {mavi} to {mavilocs}
                                        send "&cMavi Takım Oldun" to {mavi}
                                        send "&c&lOyun Başladı.Başarılar!" to {sari} and {mavi}
B Kısmı Bir Geriye Sarı Takımın ifiyle mavi if aynı yere denk gelmesini ayarladınmı yada oraya if chance of %50: yapıpdevam edebilirsin bu sayede eşit ayrılcaktır sorun çıkmayacaktır.
yani;
Kod:
if chance of 50%:
[TAB]sarı takım true olsun
else:
[TAB]mavi takım true olsun
bunlar açılınca spawnlanmayı yaparsın.
 

jackjapool

Kömür Madencisi
En iyi cevaplar
0
Kod:
if {old.%player%} is not set:
                                        set {mavi} to a random element out of {oyuncularsss::*}
                                        remove {mavi} from {oyuncularsss::*}
                                        teleport {mavi} to {mavilocs}
                                        send "&cMavi Takım Oldun" to {mavi}
                                        send "&c&lOyun Başladı.Başarılar!" to {sari} and {mavi}
B Kısmı Bir Geriye Sarı Takımın ifiyle mavi if aynı yere denk gelmesini ayarladınmı yada oraya if chance of %50: yapıpdevam edebilirsin bu sayede eşit ayrılcaktır sorun çıkmayacaktır.
yani;
Kod:
if chance of 50%:
[TAB]sarı takım true olsun
else:
[TAB]mavi takım true olsun
bunlar açılınca spawnlanmayı yaparsın.
PHP:
on rightclick on sign:
    if line 1 of block is "&9&lOyun":
        if line 2 of block is "":
            if line 3 of block is "&6&lKatıl":
                if line 4 of block is "&4&lYün Savaşı":      
                    if {oyundurum} is false:
                        if {oyunbs.%player%} is false:
                            wait 1 tick
                            add 1 to {osays}
                            wait 1 tick
                            set line 3 of block at {oyuncuTabelasi} to "%{osays}%"
                            set {oyunbs.%player%} to true
                            send "&cOyuna Katıldın.2 Oyuncuya Ulaşırsa Oyun Başlar." to player
                            add player to {oyuncularsss::*}
                            loop {oyuncularsss::*}:
                                wait 1 second
                                send "&6&l%{osays}% &cOyuncu Katılmış" to loop-value
                                wait 1 second
                                if {osays} is equal to 2:
                                    set {oyundurum} to true
                                    set {oyunbs.%loop-value%} to true
                                    wait 2 second
                                    send "&cOyun Başlıyor." to loop-value
                                    wait 2 second
                                    chance of 50%:
                                        set {sari} to a random element out of {oyuncularsss::*}
                                        remove {sari} from {oyuncularsss::*}
                                        send "&cSarı Takım Oldun" to {sari}
                                        teleport {sari} to {sarilocs}
                                        set {old.%player%} to true
                                    chance of 50%:
                                        if {old.%player%} is not set:
                                            set {mavi} to a random element out of {oyuncularsss::*}
                                            remove {mavi} from {oyuncularsss::*}
                                            teleport {mavi} to {mavilocs}
                                            send "&cMavi Takım Oldun" to {mavi}
                                    send "&c&lOyun Başladı.Başarılar!" to {sari} and {mavi}
Böylemidir

?
 

Bartuzen

Bedrock Kaşifi
En iyi cevaplar
0
Şuradan dolayı olabilir.
Kod:
set {old.%player%} to true
if {old.%player%} is not set:
 

Axel102

Hayalet Avcısı
En iyi cevaplar
6
Kod:
loop 2 times:
 loop {oyun.listesi::*}:
  add loop-value-2 to {mavi.takim::*}
  remove loop-value-2 from {oyun.listesi::*}
  loop 2 times:
   loop {oyun.listesi::*}:
    add loop-value-4 to {mavi.takim::*}
    remove loop-value-4 from {oyun.listesi::*}
2 kişiyi mavi kalan 2 kişiyide mavi takıma yerleştirir kodu okumadım
 
Üst