Çözüldü PARALI ADAFLY

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

#MadNetWork

Zombi Geldi, Beni Yedi
Katılım
26 Mart 2017
Mesajlar
246
Elmaslar
81
Puan
13.420
Yaş
36
Konum
İstanbul
Minecraft
Police

Discord:

LordOfLast#7186

Selamlar arkadaşlar yine ben.
Bugün isteğim şu;
paralı adafly mesela her 1 dakika fly için 1000 para alcak adamdan şöyle olcak /adafly 10dakika gibi yazcak adam ve adafly şey dicek onaylıyorsan tekrar yaz o da kabul edicek yazabilecek var mı veya piyasada zaten var mı ?
 
Kod:
options:

    p: &6Fly &8»

    fiyat: 1000



command /sürelifly:

    permission: fly.mctr

    permission message: &7Bunu yapmak için yetkiniz yok!

    trigger:

        if {fly::%player%} is not set:

            if player's balance is greater than or equal to {@fiyat}:

                remove {@fiyat} from player's balance

                send player title "&bSatın alma başarılı" with subtitle "&fFLY yetkiniz verildi" for 4 seconds

                play "LEVEL_UP" to player

                execute console command "manuaddp %player% essentials.fly"

                set {fly::%player%} to true

                set {fly::%player%::time} to now

                set player's fly mode to true

                wait 1 minute

                execute console command "manudelp %player% essentials.fly"

                set player's fly mode to false

                delete {fly::%player%}

                delete {fly::%player%::time}

                message "{@p} &7Süreniz doldu, üzgünüm."

                set player's fly mode to false

            else:

                message "{@p} &7Satın almak için &a{@fiyat}TL &7paraya ihtiyacınız var."

        else:

            message "{@p} &7Zaten bu özelliğiniz var."



on join:

    if {fly::%player%::time} is set:

        if difference between {fly::%player%::time} and now is greater than 30 minute:

            execute console command "manudelp %player% essentials.fly"

            set player's fly mode to false

            delete {fly::%player%}

            delete {fly::%player%::time}

            wait 3 seconds

            message "{@p} &7Süreniz doldu, üzgünüm."



command /flysürem:

    trigger:

        if {fly::%player%} is set:

            set {_sure} to difference between {fly::%player%::time} and now

            set {_sure} to "%{_sure}%" parsed as a text

            replace all "minutes" with "dakika" in {_sure}

            replace all "minute" with "dakika" in {_sure}

            replace all "seconds" with "saniye" in {_sure}

            replace all "second" with "saniye" in {_sure}

            replace all " and " with " " in {_sure} or {_zaman}

            message "{@p} &7Kalan süreniz: &f%{_sure}%&8/&f1 dakika"

        else:

            message "{@p} &7Süreli FLY özelliğiniz aktif değil."

      

command /flysil [<player>]:

    permission: fly.admin

    permission message: &7Bunu yapmak için yetkiniz yok!

    trigger:

        if arg 1 is set:

            if {fly::%arg 1%} is set:

                set arg 1's fly mode to false

                delete {fly::%arg 1%}

                delete {fly::%arg 1%::time}

                wait 3 seconds

                send "{@p} &7Süreli FLY yetkiniz silindi!" to arg 1

                message "{@p} &7Oyuncunun FLY'ı başarıyla silindi."

            else:

                message "{@p} &7Bu oyuncunun zaten süreli FLY yetkisi yok."

        else:

            message "{@p} &7Kullanım: &e/flysil <oyuncu>"
 
Kod:
options:

    p: &6Fly &8»

    fiyat: 1000



command /sürelifly:

    permission: fly.mctr

    permission message: &7Bunu yapmak için yetkiniz yok!

    trigger:

        if {fly::%player%} is not set:

            if player's balance is greater than or equal to {@fiyat}:

                remove {@fiyat} from player's balance

                send player title "&bSatın alma başarılı" with subtitle "&fFLY yetkiniz verildi" for 4 seconds

                play "LEVEL_UP" to player

                execute console command "manuaddp %player% essentials.fly"

                set {fly::%player%} to true

                set {fly::%player%::time} to now

                set player's fly mode to true

                wait 1 minute

                execute console command "manudelp %player% essentials.fly"

                set player's fly mode to false

                delete {fly::%player%}

                delete {fly::%player%::time}

                message "{@p} &7Süreniz doldu, üzgünüm."

                set player's fly mode to false

            else:

                message "{@p} &7Satın almak için &a{@fiyat}TL &7paraya ihtiyacınız var."

        else:

            message "{@p} &7Zaten bu özelliğiniz var."



on join:

    if {fly::%player%::time} is set:

        if difference between {fly::%player%::time} and now is greater than 30 minute:

            execute console command "manudelp %player% essentials.fly"

            set player's fly mode to false

            delete {fly::%player%}

            delete {fly::%player%::time}

            wait 3 seconds

            message "{@p} &7Süreniz doldu, üzgünüm."



command /flysürem:

    trigger:

        if {fly::%player%} is set:

            set {_sure} to difference between {fly::%player%::time} and now

            set {_sure} to "%{_sure}%" parsed as a text

            replace all "minutes" with "dakika" in {_sure}

            replace all "minute" with "dakika" in {_sure}

            replace all "seconds" with "saniye" in {_sure}

            replace all "second" with "saniye" in {_sure}

            replace all " and " with " " in {_sure} or {_zaman}

            message "{@p} &7Kalan süreniz: &f%{_sure}%&8/&f1 dakika"

        else:

            message "{@p} &7Süreli FLY özelliğiniz aktif değil."

     

command /flysil [<player>]:

    permission: fly.admin

    permission message: &7Bunu yapmak için yetkiniz yok!

    trigger:

        if arg 1 is set:

            if {fly::%arg 1%} is set:

                set arg 1's fly mode to false

                delete {fly::%arg 1%}

                delete {fly::%arg 1%::time}

                wait 3 seconds

                send "{@p} &7Süreli FLY yetkiniz silindi!" to arg 1

                message "{@p} &7Oyuncunun FLY'ı başarıyla silindi."

            else:

                message "{@p} &7Bu oyuncunun zaten süreli FLY yetkisi yok."

        else:

            message "{@p} &7Kullanım: &e/flysil <oyuncu>"
Fenaymiş.
 
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