Çözüldü else nasıl olmalı yardım

Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

EmektaR_03

Yaratık Tuzağı: Çalışıyor
Katılım
21 Mayıs 2017
Mesajlar
679
Elmaslar
190
Puan
75
Yaş
24
Konum
Afyonkarahisar
Minecraft
MustafaPvP1

Discord:

EMEKTAR

Merhaba, bu skript oyuncu adaya ışınlandıysa fly ını 3 saniye sonra açıyor. fakat bazen sandığa takılınca oyuncu onu ışınlanmak olarak görüyor. Sizden ricam oyuncu zaten Skyblock dünyasındaysa fly açılmasın.

Kod:
on teleport:
    if world is "ASkyBlock":
        wait 3 seconds
        execute console command "fly %player% on"
        execute console command "tm msg %player% &a&lFly Açıldı <nl> &c&lİyi Oyunlar"
    else:
        wait 1 seconds
        execute console command "fly %player% off"
        execute console command "tm msg %player% &c&lFly Kapandı <nl> &a&lİyi Oyunlar"
        stop
    else if player is in "ASkyBlock":
        cancel event
 
Bunu dene
Kod:
on teleport:
    if world is "ASkyBlock":
        wait 3 seconds
        execute console command "fly %player% on"
        cancel event
 
Kod:
on command:
  command is "is":
    wait 3 second
    if world is "ASkyBlock":
      set player's flight mode to true
      send "acilma mesaji" to player
  else:
    wait 3 second
    if world isn't "ASkyBlock":
      set player's flight mode to false
      send "kapanma mesaji" to player
buyur bunu kullan oyuncu is yazınca 3 sn sonra adasındaysa fly açıyor
eğer komut is değilse dünyayı kontrol ediyor dünya AskyBlock değilse fly kapatıyor
NOT: tpa gibi komutların süresi olduğu için sen kendine göre ayarla kapanma yerini
 
Kod:
on command:
  command is "is":
    wait 3 second
    if world is "ASkyBlock":
      set player's flight mode to true
      send "acilma mesaji" to player
  else:
    wait 3 second
    if world isn't "ASkyBlock":
      set player's flight mode to false
      send "kapanma mesaji" to player
buyur bunu kullan oyuncu is yazınca 3 sn sonra adasındaysa fly açıyor
eğer komut is değilse dünyayı kontrol ediyor dünya AskyBlock değilse fly kapatıyor
NOT: tpa gibi komutların süresi olduğu için sen kendine göre ayarla kapanma yerini
Oyuncu /is warp yazıncada buglar oluyor.
 
senin koddaki son 3 satır sil ve dene bakalım
 
Sonuç aynı. Oyuncu ışınlandığında hala "ASkyBlock" dünyasındaysa bu işlem olmasın. @smt287 @Mrtol
 
SkyBlock'ta "/fly" komutunu "ASkyBlock" dümyasında kullanılabilir hale getirmenizi öneririm. Oyuncular direk "/fly" komutunu kullandıklarında aktif olur.
 
SkyBlock'ta "/fly" komutunu "ASkyBlock" dümyasında kullanılabilir hale getirmenizi öneririm. Oyuncular direk "/fly" komutunu kullandıklarında aktif olur.
Düşüncen sağol. Ne yazikki olmaz.
 
Kod:
on command "warps":
    if {fly.%player%} is "acik":
        set player's fly mode to false
   
on command "spawn":
    if {fly.%player%} is "acik":
        set player's fly mode to false
   
on command "warp":
    if {fly.%player%} is "acik":
        set player's fly mode to false
   
on command "tpa":
    if {fly.%player%} is "acik":
        set player's fly mode to false
           
on walk:
    if player is in world "ASkyBlock":
        if {fly.%player%} is "kapali":
            set player's fly mode to true
            execute console command "tm msg %player% &a&lFly Açıldı <nl> &c&lİyi Oyunlar"
            set {fly.%player%} to "acik"
           
on join:
    if player is in world "ASkyBlock":
        set player's fly mode to true
        execute console command "tm msg %player% &a&lFly Açıldı <nl> &c&lİyi Oyunlar"
        set {fly.%player%} to "acik"
    else:
        if {fly.%player%} is not set:
            set {fly.%player%} to "kapali"
        else if {fly.%player%} is "acik":
            set {fly.%player%} to "kapali"
            set player's fly mode to false

Olabilir ya da olmayadabilir hızlı yaptımda.
 
Son düzenleme:
Kod:
on command "warps":
    if {fly.%player%} is "acik":
        set player's fly mode to false
  
on command "spawn":
    if {fly.%player%} is "acik":
        set player's fly mode to false
  
on command "warp":
    if {fly.%player%} is "acik":
        set player's fly mode to false
  
on command "tpa":
    if {fly.%player%} is "acik":
        set player's fly mode to false
          
on walk:
    if player is in world "ASkyBlock":
        if {fly.%player%} is "kapali":
            set player's fly mode to true
            execute console command "tm msg %player% &a&lFly Açıldı <nl> &c&lİyi Oyunlar"
            set {fly.%player%} to "acik"
          
on join:
    if player is in world "ASkyBlock":
        set player's fly mode to true
        execute console command "tm msg %player% &a&lFly Açıldı <nl> &c&lİyi Oyunlar"
        set {fly.%player%} to "acik"
    else:
        if {fly.%player%} is not set:
            set {fly.%player%} to "kapali"
        else if {fly.%player%} is "acik":
            set {fly.%player%} to "kapali"
            set player's fly mode to false

Olabilir ya da olmayadabilir hızlı yaptımda.
Teşekkürler konu kilit. @smt287
 
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