Çözüldü DeluxeMenus Maaş Sistemi

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

TheAkio

Bir Kömür Göründü Kaptanım!
Katılım
8 Mayıs 2020
Mesajlar
110
Elmaslar
36
Puan
0
Konum
Sakarya

Discord:

TheAkio#6422

Merhaba, deluxemenus üzerinden maaş sistemi yapıyorum. Ama oyuncuların 1 günde bir alabilmelerini ve sadece yetkilerindeki maaşı alabilmelerini sağlayamadım. Yardım edebilir misiniz?
 
Aşağıdaki skripti kullanmadan önce bilmen gerekenler;

- Group1 Group2 Group3 Group4 Group5 Group6 yazan yeri kendi grubunuzu yazın.
- Mesela Group1 yerine Oyuncu yazdınız, fiyatı 1560 yaptınız sadece oyuncular günde 1560 tl alır böyle ayarlayabilirsin.
- Fiyatlar 1200 yazan yerleri değiştirebilirsiniz.
Kod:
command /maaş [<text>]:
    trigger:
        if player's group is "Group1":
            {%player%::bekleme1} is set:
                difference between {%player%::bekleme1} and now is less than a day:
                    message "&cBugün zaten Maasını almışsın. "
                    stop trigger
            execute console command "eco give %player% 1200"
            set {%player%::bekleme1} to now
            send "&aBaşarıyla Maasını aldın. Yarın aynı zamanda tekrar gel!" to player
        if player's group is "Group2":
            {%player%::bekleme2} is set:
                difference between {%player%::bekleme2} and now is less than a day:
                    message "&cBugün zaten Maasını almışsın. "
                    stop trigger
            execute console command "eco give %player% 1200"
            set {%player%::bekleme2} to now
            send "&aBaşarıyla Maasını aldın. Yarın aynı zamanda tekrar gel!" to player
        if player's group is "Group3":
            {%player%::bekleme3} is set:
                difference between {%player%::bekleme3} and now is less than a day:
                    message "&cBugün zaten Maasını almışsın. "
                    stop trigger
            execute console command "eco give %player% 1200"
            set {%player%::bekleme3} to now
            send "&aBaşarıyla Maasını aldın. Yarın aynı zamanda tekrar gel!" to player
        if player's group is "Group4":
            {%player%::bekleme4} is set:
                difference between {%player%::bekleme4} and now is less than a day:
                    message "&cBugün zaten Maasını almışsın. "
                    stop trigger
            execute console command "eco give %player% 1200"
            set {%player%::bekleme4} to now
            send "&aBaşarıyla Maasını aldın. Yarın aynı zamanda tekrar gel!" to player
        if player's group is "Group5":
            {%player%::bekleme5} is set:
                difference between {%player%::bekleme5} and now is less than a day:
                    message "&cBugün zaten Maasını almışsın. "
                    stop trigger
            execute console command "eco give %player% 1200"
            set {%player%::bekleme5} to now
            send "&aBaşarıyla Maasını aldın. Yarın aynı zamanda tekrar gel!" to player
        if player's group is "Group6":
            {%player%::bekleme6} is set:
                difference between {%player%::bekleme6} and now is less than a day:
                    message "&cBugün zaten Maasını almışsın. "
                    stop trigger
            execute console command "eco give %player% 1200"
            set {%player%::bekleme6} to now
            send "&aBaşarıyla Maasını aldın. Yarın aynı zamanda tekrar gel!" to player
 
Aşağıdaki skripti kullanmadan önce bilmen gerekenler;

- Group1 Group2 Group3 Group4 Group5 Group6 yazan yeri kendi grubunuzu yazın.
- Mesela Group1 yerine Oyuncu yazdınız, fiyatı 1560 yaptınız sadece oyuncular günde 1560 tl alır böyle ayarlayabilirsin.
- Fiyatlar 1200 yazan yerleri değiştirebilirsiniz.
Kod:
command /maaş [<text>]:
    trigger:
        if player's group is "Group1":
            {%player%::bekleme1} is set:
                difference between {%player%::bekleme1} and now is less than a day:
                    message "&cBugün zaten Maasını almışsın. "
                    stop trigger
            execute console command "eco give %player% 1200"
            set {%player%::bekleme1} to now
            send "&aBaşarıyla Maasını aldın. Yarın aynı zamanda tekrar gel!" to player
        if player's group is "Group2":
            {%player%::bekleme2} is set:
                difference between {%player%::bekleme2} and now is less than a day:
                    message "&cBugün zaten Maasını almışsın. "
                    stop trigger
            execute console command "eco give %player% 1200"
            set {%player%::bekleme2} to now
            send "&aBaşarıyla Maasını aldın. Yarın aynı zamanda tekrar gel!" to player
        if player's group is "Group3":
            {%player%::bekleme3} is set:
                difference between {%player%::bekleme3} and now is less than a day:
                    message "&cBugün zaten Maasını almışsın. "
                    stop trigger
            execute console command "eco give %player% 1200"
            set {%player%::bekleme3} to now
            send "&aBaşarıyla Maasını aldın. Yarın aynı zamanda tekrar gel!" to player
        if player's group is "Group4":
            {%player%::bekleme4} is set:
                difference between {%player%::bekleme4} and now is less than a day:
                    message "&cBugün zaten Maasını almışsın. "
                    stop trigger
            execute console command "eco give %player% 1200"
            set {%player%::bekleme4} to now
            send "&aBaşarıyla Maasını aldın. Yarın aynı zamanda tekrar gel!" to player
        if player's group is "Group5":
            {%player%::bekleme5} is set:
                difference between {%player%::bekleme5} and now is less than a day:
                    message "&cBugün zaten Maasını almışsın. "
                    stop trigger
            execute console command "eco give %player% 1200"
            set {%player%::bekleme5} to now
            send "&aBaşarıyla Maasını aldın. Yarın aynı zamanda tekrar gel!" to player
        if player's group is "Group6":
            {%player%::bekleme6} is set:
                difference between {%player%::bekleme6} and now is less than a day:
                    message "&cBugün zaten Maasını almışsın. "
                    stop trigger
            execute console command "eco give %player% 1200"
            set {%player%::bekleme6} to now
            send "&aBaşarıyla Maasını aldın. Yarın aynı zamanda tekrar gel!" to player
player's group is not an entity type diye hata verdi 6 tane. Sanırım başka bir şey yazmamız gerekiyor.
Gönderi otomatik olarak birleştirildi:

Rütbeye özel olmadığı için kullanamıyorum maalesef, ama yinede teşekkürler.
 
Hatayı ss atabilir misin?
 

Ekli dosyalar

  • Screenshot_1.png
    Screenshot_1.png
    21,6 KB · Görüntüleme: 47
Şunu dener misin?
Kod:
command /maas [<text>]:
    trigger:
        if "%group of player%" is "Group1":
            {%player%::bekleme1} is set:
                difference between {%player%::bekleme1} and now is less than a day:
                    message "&cBugün zaten Maasını almışsın. "
                    stop trigger
            execute console command "eco give %player% 1200"
            set {%player%::bekleme1} to now
            send "&aBaşarıyla Maasını aldın. Yarın aynı zamanda tekrar gel!" to player
        if "%group of player%" is "Group2":
            {%player%::bekleme2} is set:
                difference between {%player%::bekleme2} and now is less than a day:
                    message "&cBugün zaten Maasını almışsın. "
                    stop trigger
            execute console command "eco give %player% 1200"
            set {%player%::bekleme2} to now
            send "&aBaşarıyla Maasını aldın. Yarın aynı zamanda tekrar gel!" to player
        if "%group of player%" is "Group3":
            {%player%::bekleme3} is set:
                difference between {%player%::bekleme3} and now is less than a day:
                    message "&cBugün zaten Maasını almışsın. "
                    stop trigger
            execute console command "eco give %player% 1200"
            set {%player%::bekleme3} to now
            send "&aBaşarıyla Maasını aldın. Yarın aynı zamanda tekrar gel!" to player
        if "%group of player%" is "Group4":
            {%player%::bekleme4} is set:
                difference between {%player%::bekleme4} and now is less than a day:
                    message "&cBugün zaten Maasını almışsın. "
                    stop trigger
            execute console command "eco give %player% 1200"
            set {%player%::bekleme4} to now
            send "&aBaşarıyla Maasını aldın. Yarın aynı zamanda tekrar gel!" to player
        if "%group of player%" is "Group5":
            {%player%::bekleme5} is set:
                difference between {%player%::bekleme5} and now is less than a day:
                    message "&cBugün zaten Maasını almışsın. "
                    stop trigger
            execute console command "eco give %player% 1200"
            set {%player%::bekleme5} to now
            send "&aBaşarıyla Maasını aldın. Yarın aynı zamanda tekrar gel!" to player
        if "%group of player%" is "Group6":
            {%player%::bekleme6} is set:
                difference between {%player%::bekleme6} and now is less than a day:
                    message "&cBugün zaten Maasını almışsın. "
                    stop trigger
            execute console command "eco give %player% 1200"
            set {%player%::bekleme6} to now
            send "&aBaşarıyla Maasını aldın. Yarın aynı zamanda tekrar gel!" to player
 
Şunu dener misin?
Kod:
command /maas [<text>]:
    trigger:
        if "%group of player%" is "Group1":
            {%player%::bekleme1} is set:
                difference between {%player%::bekleme1} and now is less than a day:
                    message "&cBugün zaten Maasını almışsın. "
                    stop trigger
            execute console command "eco give %player% 1200"
            set {%player%::bekleme1} to now
            send "&aBaşarıyla Maasını aldın. Yarın aynı zamanda tekrar gel!" to player
        if "%group of player%" is "Group2":
            {%player%::bekleme2} is set:
                difference between {%player%::bekleme2} and now is less than a day:
                    message "&cBugün zaten Maasını almışsın. "
                    stop trigger
            execute console command "eco give %player% 1200"
            set {%player%::bekleme2} to now
            send "&aBaşarıyla Maasını aldın. Yarın aynı zamanda tekrar gel!" to player
        if "%group of player%" is "Group3":
            {%player%::bekleme3} is set:
                difference between {%player%::bekleme3} and now is less than a day:
                    message "&cBugün zaten Maasını almışsın. "
                    stop trigger
            execute console command "eco give %player% 1200"
            set {%player%::bekleme3} to now
            send "&aBaşarıyla Maasını aldın. Yarın aynı zamanda tekrar gel!" to player
        if "%group of player%" is "Group4":
            {%player%::bekleme4} is set:
                difference between {%player%::bekleme4} and now is less than a day:
                    message "&cBugün zaten Maasını almışsın. "
                    stop trigger
            execute console command "eco give %player% 1200"
            set {%player%::bekleme4} to now
            send "&aBaşarıyla Maasını aldın. Yarın aynı zamanda tekrar gel!" to player
        if "%group of player%" is "Group5":
            {%player%::bekleme5} is set:
                difference between {%player%::bekleme5} and now is less than a day:
                    message "&cBugün zaten Maasını almışsın. "
                    stop trigger
            execute console command "eco give %player% 1200"
            set {%player%::bekleme5} to now
            send "&aBaşarıyla Maasını aldın. Yarın aynı zamanda tekrar gel!" to player
        if "%group of player%" is "Group6":
            {%player%::bekleme6} is set:
                difference between {%player%::bekleme6} and now is less than a day:
                    message "&cBugün zaten Maasını almışsın. "
                    stop trigger
            execute console command "eco give %player% 1200"
            set {%player%::bekleme6} to now
            send "&aBaşarıyla Maasını aldın. Yarın aynı zamanda tekrar gel!" to player
 

Ekli dosyalar

  • Screenshot_2.png
    Screenshot_2.png
    56 KB · Görüntüleme: 41
Hocam maaş.sk dosyasını maas.sk olarak değiştirip dener misin?
 
Hocam maaş.sk dosyasını maas.sk olarak değiştirip dener misin?
Sizce de biraz alakasız olmadı mı? Yine de denedim, sonuç aynı. Sanırım if player's group skriptte çalışmıyor. Bende bir kaç argüman denedim de, yapamadım. Belki de biz yapamıyoruzdur. Bilen birileri yardım edebilirse çok mutlu olurum ^^
 
Bir tane buldum. Değişilmesi gereken kısımları kendine göre düzenlersin.
Kod:
options:
    albaymaas: 5
    yarbaymaas: 4
    binbasimaas: 3
    yuzbasimaas: 2
    tegmenmaas: 1

every hour:
    loop all players:
        if loop-player has permission "maas.albay":
            execute console command "eco give %loop-player% {@albaymaas}"
            send "&2Maaşını aldın! Maaşın: &a{@albaymaas}" to loop-player
        else if loop-player has permission "maas.yarbay":
            execute console command "eco give %loop-player% {@yarbaymaas}"
            send "&2Maaşını aldın! Maaşın: &a{@yarbaymaas}" to loop-player
        else if loop-player has permission "maas.binbasi":
            execute console command "eco give %loop-player% {@binbasimaas}"
            send "&2Maaşını aldın! Maaşın: &a{@binbasimaas}" to loop-player
        else if loop-player has permission "maas.yuzbasi":
            execute console command "eco give %loop-player% {@yuzbasimaas}"
            send "&2Maaşını aldın! Maaşın: &a{@yuzbasimaas}" to loop-player
        else if loop-player has permission "maas.tegmen":
            execute console command "eco give %loop-player% {@tegmenmaas}"
            send "&2Maaşını aldın! Maaşın: &a{@tegmenmaas}" to loop-player
Gönderi otomatik olarak birleştirildi:

Send eklemeyi unutmuşum sonradan ekledim bu arada.
 
Bir tane buldum. Değişilmesi gereken kısımları kendine göre düzenlersin.
Kod:
options:
    albaymaas: 5
    yarbaymaas: 4
    binbasimaas: 3
    yuzbasimaas: 2
    tegmenmaas: 1

every hour:
    loop all players:
        if loop-player has permission "maas.albay":
            execute console command "eco give %loop-player% {@albaymaas}"
            send "&2Maaşını aldın! Maaşın: &a{@albaymaas}" to loop-player
        else if loop-player has permission "maas.yarbay":
            execute console command "eco give %loop-player% {@yarbaymaas}"
            send "&2Maaşını aldın! Maaşın: &a{@yarbaymaas}" to loop-player
        else if loop-player has permission "maas.binbasi":
            execute console command "eco give %loop-player% {@binbasimaas}"
            send "&2Maaşını aldın! Maaşın: &a{@binbasimaas}" to loop-player
        else if loop-player has permission "maas.yuzbasi":
            execute console command "eco give %loop-player% {@yuzbasimaas}"
            send "&2Maaşını aldın! Maaşın: &a{@yuzbasimaas}" to loop-player
        else if loop-player has permission "maas.tegmen":
            execute console command "eco give %loop-player% {@tegmenmaas}"
            send "&2Maaşını aldın! Maaşın: &a{@tegmenmaas}" to loop-player
Çok hızlısınız, tam ben atacaktım onu :D
 
Bir tane buldum. Değişilmesi gereken kısımları kendine göre düzenlersin.
Kod:
options:
    albaymaas: 5
    yarbaymaas: 4
    binbasimaas: 3
    yuzbasimaas: 2
    tegmenmaas: 1

every hour:
    loop all players:
        if loop-player has permission "maas.albay":
            execute console command "eco give %loop-player% {@albaymaas}"
            send "&2Maaşını aldın! Maaşın: &a{@albaymaas}" to loop-player
        else if loop-player has permission "maas.yarbay":
            execute console command "eco give %loop-player% {@yarbaymaas}"
            send "&2Maaşını aldın! Maaşın: &a{@yarbaymaas}" to loop-player
        else if loop-player has permission "maas.binbasi":
            execute console command "eco give %loop-player% {@binbasimaas}"
            send "&2Maaşını aldın! Maaşın: &a{@binbasimaas}" to loop-player
        else if loop-player has permission "maas.yuzbasi":
            execute console command "eco give %loop-player% {@yuzbasimaas}"
            send "&2Maaşını aldın! Maaşın: &a{@yuzbasimaas}" to loop-player
        else if loop-player has permission "maas.tegmen":
            execute console command "eco give %loop-player% {@tegmenmaas}"
            send "&2Maaşını aldın! Maaşın: &a{@tegmenmaas}" to loop-player
Şimdi deneyeceğim, teşekkür ederim yardımlarınızdan dolayı sizi de yordum bugün :)
Gönderi otomatik olarak birleştirildi:

Tam istediğim gibi olmasa da idare etmek gerek :) Yardım için teşekkürler, konu kilitlenebilir.
 
Son düzenleme:
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