Özel Mute Atma /ozur kabul - /ozur reddet

ToprakM

KEK
Emektar Üye
En iyi cevaplar
49
Düzenliyorum.

PHP:
#
#
# Yapımcı / Producer by
# @ToprakM
#
#

command /mute [<offlineplayer>] [<text>] [<text>] [<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 "&8&m--------&a[&6Susturucu&a]&8&m--------" to all players
                send "&bSusturulan Oyuncu: &c%arg 1%" to all players
                send "&bSusturan Kişi: &2%player%" to all players
                send "&bSüre: &3%{_sure}%" to all players
                if arg-3 is set:
                    send "&bSebep: &a%arg 3%" to all players
                else:
                    send "&bSebep: &aBelirtilmedi" to all players
                send "&8&m--------&a[&6Susturucu&a]&8&m--------" to all players
                execute console command "essentials:mute %arg 1% %arg 2%"
                delete {muteozur::%arg-1%}
                if arg 5 is set:
                    if arg 4 is "ozurevet" or "özürevet":
                        set {muteozur::%arg-1%} to arg-5
                        send "&a[&6Susturucu&a] &bSusturuldun lakin &c%player% &bAdlı Yetkili Sana &c%arg 5% &bAdlı Oyuncudan Özür Dileme Şansı Verdi!" to arg-1
                        send "&a[&6Susturucu&a] &c%player% &bAdlı Oyuncu &c%arg-5% &bAdlı Oyuncudan Özür Diliyor!"
                else:
                    send "&a[&6Susturucu&a] &bMute Atıldı Ama Özür Dileme Hakkı Verilmedi!" to player
                    send "&a[&6Susturucu&a] &eTam Kullanım: /sustur OyuncuAdı Süre Sebep <ozurevet/ozurhayir> OyuncununHakaretEttiğiKişi" to player
            else:
                send "&a[&6Susturucu&a] &eKomutu Eksik Girdin!" to player
                send "&a[&6Susturucu&a] &eTam Kullanım: /sustur OyuncuAdı Süre Sebep <ozurevet/ozurhayir> OyuncununHakaretEttiğiKişi" to player
        else:
            send "&a[&6Susturucu&a] &eKomutu Eksik Girdin!" to player
            send "&a[&6Susturucu&a] &eTam Kullanım: /sustur OyuncuAdı Süre Sebep <ozurevet/ozurhayir> OyuncununHakaretEttiğiKişi" to player

command /Özür [<text>] [<text>]:
    trigger:
        if arg 1 is set:
            if arg 2 is set:
                if arg 1 is "Evet" or "Yes" or "Kabul":
                    if {muteozur::%arg-2%} is player:
                        send "&a[&6Susturucu&a] &c%arg-2% &bAdlı Oyuncuyu Affettin!" to player
                        send "&a[&6Susturucu&a] &c%player% &bAdlı Oyuncu &c%arg-2% &bAdlı Oyuncuyu Affetti!" to all players
                        execute console command "essentials:mute %arg-2% 1s"
                        delete {muteozur::%arg-2%}
                    else:
                        send "&a[&6Susturucu&a] &c%arg-2% &bAdlı Oyuncu Senden Özür Dilememiş" to player
                if arg 1 is "Hayır" or "Hayir" or "No" or "Red" or "Ret":
                    if {muteozur::%arg-2%} is player:
                        delete {muteozur::%arg-2%}
                        send "&a[&6Susturucu&a] &c%player% &bAdlı Oyuncu &c%arg-2% &bAdlı Oyuncunun Özrünü Reddetti!" to all players
                        send "&a[&6Susturucu&a] &bBaşarıyla &c%arg 2% &bAdlı Oyuncunun Özrünü Reddettin!" to player
                    else:
                        send "&a[&6Susturucu&a] &c%arg-2% &bAdlı Oyuncu Senden Özür Dilememiş" to player
                if arg 1 is not "Hayır" or "Hayir" or "No" or "Yes" or "Evet":
                    send "&a[&6Susturucu&a] &bKullanım: &c/Özür [<Kabul/Red>] ÖzürDileyenOyuncu" to player
            else:
                send "&a[&6Susturucu&a] &bKullanım: &c/Özür [<Kabul/Red>] ÖzürDileyenOyuncu" to player

Denedim. Hatasız çalışıyor olması lazım.
Komutlar:
/sustur OyuncuAdı Süre Sebep <ozurevet/ozurhayir> OyuncununHakaretEttiğiKişi
/Özür [<Kabul/Red>] ÖzürDileyenOyuncu
Kod:
/sustur OyuncuAdı Süre Sebep <ozurevet/ozurhayir> OyuncununHakaretEttiğiKişi
olarak kullanıyorsunuz değil mi?
 

LordOfTürk

Bööö!
Site İK Yöneticisi
En iyi cevaplar
83
aslında çok güzel bi fikir ama adam özür diledikden sonra mutesi açınca gene sövmesin :D
 

JoyEggeY

Zombi Katili
En iyi cevaplar
4
Sana bir dost tafsiyesi:
Bana kalırsa özür kabul red yapma: Çünkü adam küfür.etmiştir
ama diğer oyunculara haksızlık olur :(:
 
Üst