Bulundu Dakika ve Saniye Belirten Susturma Skripti

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

dimitris831

Demir Cevheri Gibiyim
Katılım
31 Ocak 2020
Mesajlar
194
Elmaslar
43
Puan
0
Yaş
25
Konum
İzmir, Selçuk
Minecraft
dimitris831
Facebook
ichbindimitris
X
dimitrisabiniz

Discord:

dimitris831#0001

Selam arkadaşlar, isteğim /mute (isim) (sebep) (süre) [dakika bakımından] yazdığı zaman susturulan kişi yazı yazmaya çalıştığında Susturulmuşsun, ne kadar süre kaldığını görebilmek için /susturuldum yaz. diye mesaj gidecek, oyuncu da /susturuldum yazdığında eğer susturulmuşsa ona, Ahmet isimli yetkili seni 10 dakikalığına susturdu. altına ise Susturman 7 dakika 34 saniye sonra bitecek şeklinde bir mesaj olsa mükemmel olur. Bunu benim için yapabilirseniz çok sevinirim, adamsınız <3
 
Kod:
command /sustur [<offline player>] [<number>] [<text>]:
    permission: sk.admin
    permission message: &cYetersiz Yetki! Gereken &6sk.admin
    usage: /sustur (nick) (sure[dakika]) (sebep)
    trigger:
        if arg-1 is set:
            if arg-1 is not op:
                if arg-2 is set:
                    if arg-3 is set:
                        wait 1 second
                        broadcast "&6MC&eTR &8» &3%arg-1% &aadlı kullanıcı &3%player% &atarafından &3%arg-2% &aDakika sunucuda susturuldu. Sebebi &3%arg-3%&a!"
                        set {susturulma.%arg-1%} to true
                        add argument 2 to {susturma.suresi.%arg-1%}
                        send "&6MC&eTR &8» &3%player% &aadlı yetkili tarafından susturuldun!" to arg-1
                        execute console command "tm msg %arg-1% &c&lSUSTURULDUN!"
                    else:
                        send "&6MC&eTR &8» &7Kullanım: &c/sustur [nick] [Süre(dakika)] (sebep)"
                else:
                    send "&6MC&eTR &8» &7Kullanım: &c/sustur [nick] [Süre(dakika)] (sebep)"
            else:
                send "&6MC&eTR &8» &cYetkiliyi Susturamazsın!"
        else:
            send "&6MC&eTR &8» &7Kullanım: &c/sustur [nick] [Süre(dakika)] (sebep)"       
          
command /susturkaldır [<offline player>]:
    permission: sk.admin
    permission message: &cYetersiz Yetki! Gereken &6skMC.admin
    usage: /susturkaldır (nick)
    trigger:
        if {susturulma.%arg-1%} is true:
            broadcast "&6MC&eTR &8» &3%arg-1% &aadlı kullanıcının susturulması &3%player% &aadlı yetkili tarafından bitirildi!"
            set {susturulma.%arg-1%} to false
            delete {susturma.suresi.%arg-1%}
            execute console command "tm msg %arg-1% &c&lSUSTURMAN BITTI!"
        else:
            send "&6MC&eTR &8» &cHehe, kişi susturulmuş değil!"

every 1 minute:
    loop all players:
        if {susturulma.%loop-player%} is true:
            add -1 to {susturma.suresi.%loop-player%}
        if {susturma.suresi.%loop-player%} is 0:
            set {susturulma.%loop-player%} to false
            delete {susturma.suresi.%loop-player%}
            broadcast "&6MC&eTR &8» &3%loop-player% &aadlı kullanıcının susturulma süresi bitti!"
            execute console command "tm msg %loop-player% &c&lSUSTURMAN BITTI!"
          
on chat:
    if {susturulma.%player%} is true:
        cancel event
        execute console command "tm msg %player% &c&lSUSTURULMUŞSUN!"
        message "&6MC&eTR &8» &7Susturulmuşsun! Kalan Susturma Süren: &c%{susturma.suresi.%player%}% Dakika"
 
Kod:
command /mute [<offlineplayer>] [<text>] [<text>]:
    aliases: sustur
    permission: essentials.mute
    permission message: &cBunu yapmak için yetkin yok!
    trigger:
        if arg 1 is set:
            if arg 2 is set:
                set {_sure} to arg-2
                if arg-2 contains "10y" or "30y":
                    replace all "10y" with "Sınırsız" in {_sure}
                    replace all "30y" with "Sınırsız" in {_sure}
                if arg-2 contains "m":
                    replace all "m" with " Dakika" in {_sure}
                if arg-2 contains "h":
                    replace all "h" with " Saat" in {_sure}
                if arg-2 contains "y":
                    replace all "y" with " Yıl" in {_sure}
                if arg-2 contains "w":
                    replace all "w" with " Hafta" in {_sure}
                if arg-2 contains "s":
                    replace all "s" with " Saniye" in {_sure}
                if arg-2 contains "mo":
                    replace all "mo" with " Ay" in {_sure}
                if arg-2 contains "d":
                    replace all "d" with " Gün" in {_sure}
                send "&e&lSKYBLOCK &8▶ &6%arg 1% &a%{_sure}% susturuldu" to all players
                else:
                    send " &d▪ &eSebep &8▶ &6Belirtilmedi &8◀" to all players
                execute console command "essentials:mute %arg 1% %arg 2%"
            else:
                send "&e&lSKYBLOCK &8▶ &aSüre girmeyi unuttun" to player
        else:
            send "&e&lSKYBLOCK &8▶ &aOyuncu adı girmeyi unuttun"
 
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