Çözüldü Skriptten bir satır silme

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

Crypton

Örümcek Hoşt!
Katılım
7 Mayıs 2020
Mesajlar
352
Elmaslar
110
Puan
1.560
Yaş
27
Konum
Danimarka - Kopenhag
Minecraft
Crypton

Discord:

Crypton#0161

Kod:
options:
    p: &6&lSKYBLOCK &8»&f
variables:
    {genel::%player%} = true
    {yetkili::%player%} = false
    {vip::%player%} = false
command /chat [<text>]:
    trigger:
        if arg 1 is set:
            if arg 1 is "genel":
                if {genel::%player%} is true:
                    send "{@p} &cZaten genel sohbetdesin!" to player
                else:
                    set {genel::%player%} to true
                    set {vip::%player%} to false
                    set {yetkili::%player%} to false
                    send "{@p} &aBaşarıyla &a&lGENEL SOHBET&r&a'e aktarıldın!" to player
            else:
                if arg 1 is "yetkili":
                    if {yetkili::%player%} is true:
                        send "{@p} &cZaten yetkili sohbetdesin!" to player
                    else:
                        if player has permission "chat.yetkili":
                            set {genel::%player%} to false
                            set {vip::%player%} to false
                            set {yetkili::%player%} to true
                            send "{@p} &aBaşarıyla &b&lYETKILI SOHBET&r&a'e aktarıldın!" to player
                        else:
                            send "{@p} &cBu kanala geçebilmek için yetkin yok!" to player
                else:
                    if arg 1 is "vip":
                        if {vip::%player%} is true:
                            send "{@p} &cZaten VIP sohbetdesin!" to player
                        else:
                            if player has permission "chat.vip":
                                set {genel::%player%} to false
                                set {vip::%player%} to true
                                set {yetkili::%player%} to false
                                send "{@p} &aBaşarıyla &c&lVIP SOHBET&r&a'e aktarıldın!" to player
                            else:
                                send "{@p} &cBu kanala geçebilmek için yetkin yok!" to player
                    else:
                        execute player command "chat"
        else:
            send "{@p} &eDoğru Kullanım:" to player
            send "{@p} &a/chat genel &8- &fGenel Sohbet'e bağlan." to player
            send "{@p} &b/chat yetkili &8- &fYetkili Sohbet'e bağlan." to player
            send "{@p} &c/chat vip &8- &fVIP Sohbet'e bağlan." to player
on chat:
    if {genel::%player%} is true:
        cancel event
        loop all players:
            if {genel::%loop-player%} is true:
                send "&8[ &a&lGENEL &8] &3%player's displayname% &8» &f%message%" to loop-player
on chat:
    if {yetkili::%player%} is true:
        cancel event
        loop all players:
            if {yetkili::%loop-player%} is true:
                send "&8[ &b&lYETKILI &8] &3%player's displayname% &8» &f%message%" to loop-player
on chat:
    if {vip::%player%} is true:
        cancel event
        loop all players:
            if {vip::%loop-player%} is true:
                send "&8[ &c&lVIP &8] &3%player's displayname% &8» &f%message%" to loop-player
bu skriptten genel chati nasıl silebilirim sildim fakat hata verdi
 
Kod:
command /sil:
    trigger:
        if player has permission "chat.sil":
            loop 70 times:
                broadcast " "
            send "                        &eSkyBus" to all players
            send "&fMerhaba kullanıcı sohbet &a%player% &ftarafından silindi" to all players
            send "&fLütfen Sohbet kurallarına uy ve saygılı ol" to all players
            send "                     &fİyi Oyunlar" to all players
        else:
            message "&4&lHata &8» &eBu komutu kullanabilmek için gereken yetkiye sahip değilsin."
Command /chat <text>:
permission: chat.kilit
trigger:
  if arg 1 is "kapat":
   set {kilitli} to true
   broadcast "&e                       &eSkyBus"
   broadcast ""
   broadcast " &c&l                  Sohbet DeAktif !"
   broadcast ""
   broadcast "&e                       &eSkyBus"
  else:
   if arg 1 is "ac":
   set {kilitli} to false
   broadcast "&e                       &eSkyBus"
   broadcast ""
   broadcast " &a&l                  Sohbet Açıldı !"
   broadcast "&e                       &eSkyBus"

on chat:
{kilitli} is true:
  if player doesn't have permission "sohbet.konusma":
   cancel event
   send "&3SkyBus &8» &eKonuşmak için sohbetin açılmasını bekle !" to player


command /ys <text>:
    permission: adminchat.sk
    aliases: /sc
    usage: &7Yetkili girmek için: &d/ys ac &7Yetkili Sohbetten çıkmak için &d/ys kapat
    trigger:
        arg 1 is "ac":
            set {opkonusmada.%player%} to 1
            send "&7Yetkili sohbetini başarıyla &daçtınız."
        arg 1 is "kapat":
            set {opkonusmada.%player%} to 0
            send "&7Yetkili sohbetini başarıyla &dkapattınız."

       
on chat:
    {opkonusmada.%player%} is 1:
        cancel event
        wait 0 second
        send "&6Yetkili Sohbet &8| &e%player% &8➙ &a%message%" to ops
    else:
[CENTER]        stop


Bu skript i dener misin ?
 
Kod:
command /sil:
    trigger:
        if player has permission "chat.sil":
            loop 70 times:
                broadcast " "
            send "                        &eSkyBus" to all players
            send "&fMerhaba kullanıcı sohbet &a%player% &ftarafından silindi" to all players
            send "&fLütfen Sohbet kurallarına uy ve saygılı ol" to all players
            send "                     &fİyi Oyunlar" to all players
        else:
            message "&4&lHata &8» &eBu komutu kullanabilmek için gereken yetkiye sahip değilsin."
Command /chat <text>:
permission: chat.kilit
trigger:
  if arg 1 is "kapat":
   set {kilitli} to true
   broadcast "&e                       &eSkyBus"
   broadcast ""
   broadcast " &c&l                  Sohbet DeAktif !"
   broadcast ""
   broadcast "&e                       &eSkyBus"
  else:
   if arg 1 is "ac":
   set {kilitli} to false
   broadcast "&e                       &eSkyBus"
   broadcast ""
   broadcast " &a&l                  Sohbet Açıldı !"
   broadcast "&e                       &eSkyBus"

on chat:
{kilitli} is true:
  if player doesn't have permission "sohbet.konusma":
   cancel event
   send "&3SkyBus &8» &eKonuşmak için sohbetin açılmasını bekle !" to player


command /ys <text>:
    permission: adminchat.sk
    aliases: /sc
    usage: &7Yetkili girmek için: &d/ys ac &7Yetkili Sohbetten çıkmak için &d/ys kapat
    trigger:
        arg 1 is "ac":
            set {opkonusmada.%player%} to 1
            send "&7Yetkili sohbetini başarıyla &daçtınız."
        arg 1 is "kapat":
            set {opkonusmada.%player%} to 0
            send "&7Yetkili sohbetini başarıyla &dkapattınız."

       
on chat:
    {opkonusmada.%player%} is 1:
        cancel event
        wait 0 second
        send "&6Yetkili Sohbet &8| &e%player% &8➙ &a%message%" to ops
    else:
[CENTER]        stop


Bu skript i dener misin ?[/CENTER]
to all players mantıken sürekli tüm oyuncuları looplamicakmı skriptin alt alta yazılan all playersları algıladıgını düşünmüyorum bana göre altaki kod daha mantıklı (test etmedim syntax hataları olabilir)


Kod:
command /sil:
    permission: chat.sil
    permission message: "&4&lHata &8» &eBu komutu kullanabilmek için gereken yetkiye sahip değilsin."
    trigger:
        loop all players:
            loop 100 times:
                send "" to loop-player
            send "                        &eSkyBus" to loop-player
            send "&fMerhaba kullanıcı sohbet &a%player% &ftarafından silindi" to loop-player
            send "&fLütfen Sohbet kurallarına uy ve saygılı ol" to loop-player
            send "                     &fİyi Oyunlar" to loop-player
 
to all players mantıken sürekli tüm oyuncuları looplamicakmı skriptin alt alta yazılan all playersları algıladıgını düşünmüyorum bana göre altaki kod daha mantıklı (test etmedim syntax hataları olabilir)


Kod:
command /sil:
    permission: chat.sil
    permission message: "&4&lHata &8» &eBu komutu kullanabilmek için gereken yetkiye sahip değilsin."
    trigger:
        loop all players:
            loop 100 times:
                send "" to loop-player
            send "                        &eSkyBus" to loop-player
            send "&fMerhaba kullanıcı sohbet &a%player% &ftarafından silindi" to loop-player
            send "&fLütfen Sohbet kurallarına uy ve saygılı ol" to loop-player
            send "                     &fİyi Oyunlar" to loop-player
Buda bir düşünce tarzı fikrinize saygı duyuyorum​
 
Kod:
options:
    p: &6&lSKYBLOCK &8»&f
variables:
    {genel::%player%} = true
    {yetkili::%player%} = false
    {vip::%player%} = false
command /chat [<text>]:
    trigger:
        if arg 1 is set:
            if arg 1 is "genel":
                if {genel::%player%} is true:
                    send "{@p} &cZaten genel sohbetdesin!" to player
                else:
                    set {genel::%player%} to true
                    set {vip::%player%} to false
                    set {yetkili::%player%} to false
                    send "{@p} &aBaşarıyla &a&lGENEL SOHBET&r&a'e aktarıldın!" to player
            else:
                if arg 1 is "yetkili":
                    if {yetkili::%player%} is true:
                        send "{@p} &cZaten yetkili sohbetdesin!" to player
                    else:
                        if player has permission "chat.yetkili":
                            set {genel::%player%} to false
                            set {vip::%player%} to false
                            set {yetkili::%player%} to true
                            send "{@p} &aBaşarıyla &b&lYETKILI SOHBET&r&a'e aktarıldın!" to player
                        else:
                            send "{@p} &cBu kanala geçebilmek için yetkin yok!" to player
                else:
                    if arg 1 is "vip":
                        if {vip::%player%} is true:
                            send "{@p} &cZaten VIP sohbetdesin!" to player
                        else:
                            if player has permission "chat.vip":
                                set {genel::%player%} to false
                                set {vip::%player%} to true
                                set {yetkili::%player%} to false
                                send "{@p} &aBaşarıyla &c&lVIP SOHBET&r&a'e aktarıldın!" to player
                            else:
                                send "{@p} &cBu kanala geçebilmek için yetkin yok!" to player
                    else:
                        execute player command "chat"
        else:
            send "{@p} &eDoğru Kullanım:" to player
            send "{@p} &a/chat genel &8- &fGenel Sohbet'e bağlan." to player
            send "{@p} &b/chat yetkili &8- &fYetkili Sohbet'e bağlan." to player
            send "{@p} &c/chat vip &8- &fVIP Sohbet'e bağlan." to player
on chat:
    if {genel::%player%} is true:
        cancel event
        loop all players:
            if {genel::%loop-player%} is true:
                send "&8[ &a&lGENEL &8] &3%player's displayname% &8» &f%message%" to loop-player
on chat:
    if {yetkili::%player%} is true:
        cancel event
        loop all players:
            if {yetkili::%loop-player%} is true:
                send "&8[ &b&lYETKILI &8] &3%player's displayname% &8» &f%message%" to loop-player
on chat:
    if {vip::%player%} is true:
        cancel event
        loop all players:
            if {vip::%loop-player%} is true:
                send "&8[ &c&lVIP &8] &3%player's displayname% &8» &f%message%" to loop-player
bu skriptten genel chati nasıl silebilirim sildim fakat hata verdi
JavaScript:
options:
    p: &6&lSKYBLOCK &8»&f
variables:
    {yetkili::%player%} = false
    {vip::%player%} = false
command /chat [<text>]:
    trigger:     
                if arg 1 is "yetkili":
                    if {yetkili::%player%} is true:
                        send "{@p} &cZaten yetkili sohbetdesin!" to player
                    else:
                        if player has permission "chat.yetkili":
                            set {vip::%player%} to false
                            set {yetkili::%player%} to true
                            send "{@p} &aBaşarıyla &b&lYETKILI SOHBET&r&a'e aktarıldın!" to player
                        else:
                            send "{@p} &cBu kanala geçebilmek için yetkin yok!" to player
                else:
                    if arg 1 is "vip":
                        if {vip::%player%} is true:
                            send "{@p} &cZaten VIP sohbetdesin!" to player
                        else:
                            if player has permission "chat.vip":
                                set {vip::%player%} to true
                                set {yetkili::%player%} to false
                                send "{@p} &aBaşarıyla &c&lVIP SOHBET&r&a'e aktarıldın!" to player
                            else:
                                send "{@p} &cBu kanala geçebilmek için yetkin yok!" to player
                    else:
                        execute player command "chat"
        else:
            send "{@p} &eDoğru Kullanım:" to player
            send "{@p} &b/chat yetkili &8- &fYetkili Sohbet'e bağlan." to player
            send "{@p} &c/chat vip &8- &fVIP Sohbet'e bağlan." to player
on chat:
    if {yetkili::%player%} is true:
        cancel event
        loop all players:
            if {yetkili::%loop-player%} is true:
                send "&8[ &b&lYETKILI &8] &3%player's displayname% &8» &f%message%" to loop-player
on chat:
    if {vip::%player%} is true:
        cancel event
        loop all players:
            if {vip::%loop-player%} is true:
                send "&8[ &c&lVIP &8] &3%player's displayname% &8» &f%message%" to loop-player

Tab hatası olabilir onuda sen halledersin
 
Kod:
command /sil:
    trigger:
        if player has permission "chat.sil":
            loop 70 times:
                broadcast " "
            send "                        &eSkyBus" to all players
            send "&fMerhaba kullanıcı sohbet &a%player% &ftarafından silindi" to all players
            send "&fLütfen Sohbet kurallarına uy ve saygılı ol" to all players
            send "                     &fİyi Oyunlar" to all players
        else:
            message "&4&lHata &8» &eBu komutu kullanabilmek için gereken yetkiye sahip değilsin."
Command /chat <text>:
permission: chat.kilit
trigger:
  if arg 1 is "kapat":
   set {kilitli} to true
   broadcast "&e                       &eSkyBus"
   broadcast ""
   broadcast " &c&l                  Sohbet DeAktif !"
   broadcast ""
   broadcast "&e                       &eSkyBus"
  else:
   if arg 1 is "ac":
   set {kilitli} to false
   broadcast "&e                       &eSkyBus"
   broadcast ""
   broadcast " &a&l                  Sohbet Açıldı !"
   broadcast "&e                       &eSkyBus"

on chat:
{kilitli} is true:
  if player doesn't have permission "sohbet.konusma":
   cancel event
   send "&3SkyBus &8» &eKonuşmak için sohbetin açılmasını bekle !" to player


command /ys <text>:
    permission: adminchat.sk
    aliases: /sc
    usage: &7Yetkili girmek için: &d/ys ac &7Yetkili Sohbetten çıkmak için &d/ys kapat
    trigger:
        arg 1 is "ac":
            set {opkonusmada.%player%} to 1
            send "&7Yetkili sohbetini başarıyla &daçtınız."
        arg 1 is "kapat":
            set {opkonusmada.%player%} to 0
            send "&7Yetkili sohbetini başarıyla &dkapattınız."

      
on chat:
    {opkonusmada.%player%} is 1:
        cancel event
        wait 0 second
        send "&6Yetkili Sohbet &8| &e%player% &8➙ &a%message%" to ops
    else:
[CENTER]        stop


Bu skript i dener misin ?
ben yukardakini istemiştim
JavaScript:
options:
    p: &6&lSKYBLOCK &8»&f
variables:
    {yetkili::%player%} = false
    {vip::%player%} = false
command /chat [<text>]:
    trigger:    
                if arg 1 is "yetkili":
                    if {yetkili::%player%} is true:
                        send "{@p} &cZaten yetkili sohbetdesin!" to player
                    else:
                        if player has permission "chat.yetkili":
                            set {vip::%player%} to false
                            set {yetkili::%player%} to true
                            send "{@p} &aBaşarıyla &b&lYETKILI SOHBET&r&a'e aktarıldın!" to player
                        else:
                            send "{@p} &cBu kanala geçebilmek için yetkin yok!" to player
                else:
                    if arg 1 is "vip":
                        if {vip::%player%} is true:
                            send "{@p} &cZaten VIP sohbetdesin!" to player
                        else:
                            if player has permission "chat.vip":
                                set {vip::%player%} to true
                                set {yetkili::%player%} to false
                                send "{@p} &aBaşarıyla &c&lVIP SOHBET&r&a'e aktarıldın!" to player
                            else:
                                send "{@p} &cBu kanala geçebilmek için yetkin yok!" to player
                    else:
                        execute player command "chat"
        else:
            send "{@p} &eDoğru Kullanım:" to player
            send "{@p} &b/chat yetkili &8- &fYetkili Sohbet'e bağlan." to player
            send "{@p} &c/chat vip &8- &fVIP Sohbet'e bağlan." to player
on chat:
    if {yetkili::%player%} is true:
        cancel event
        loop all players:
            if {yetkili::%loop-player%} is true:
                send "&8[ &b&lYETKILI &8] &3%player's displayname% &8» &f%message%" to loop-player
on chat:
    if {vip::%player%} is true:
        cancel event
        loop all players:
            if {vip::%loop-player%} is true:
                send "&8[ &c&lVIP &8] &3%player's displayname% &8» &f%message%" to loop-player

Tab hatası olabilir onuda sen halledersin
çalışmadı
 
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