Çözüldü Davet Skripti

Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

Fenix Network

FenixNW.Keyubu.Com
Katılım
22 Eylül 2019
Mesajlar
894
Elmaslar
581
Puan
6.020
Yaş
27
merhabalar sunucuma davet skripti istiyorumda yapabilcekmi
/davet isim yazınca hem davet edene hemde sunucuya gelene 50KT ödül verecek
bide aynı ip den girme yasaklanabiliyorsa yapabilirseniz sevinirim.
 
Kod:
command /invite:
    aliases: davet
    trigger:
        if {invite::%player%} is not set:
            set {invite::%player%} to random integer between 123456 and 999999
            send "&3Davet &8> &7Davet kodun &e%{invite::%player%}% &7olarak belirlendi!"
            send "&3Davet &8> &7Bu kodu arkadaşların girer ise &espawner &7kazanacaksın!"
        else:
            send "&3Davet &8> &7Zaten davet kodu oluşturdun! Kodun: &e%{invite::%player%}%"
command /referans [<offlineplayer>] [<number>]:
    trigger:
        if arg-1 is set:
            if arg-2 is set:
                if {invite::%arg-1%} is set:
                    if arg-1 is not "%player%":
                        if arg-2 is not {invite::%arg-1%}:
                            send "&3Davet &8> &7Kod yanlış!"
                        if arg-2 = {invite::%arg-1%}:
                            if {kullanilan::%player%::*} contains arg-1:
                                send "&3Davet &8> &7Bu kodu zaten kullandın!"
                            else:
                                send "&3Davet &8> &7Davet kodunu kullandın!"
                                send "&3Davet &8> &e%player% &7oyuncusu seni referans olarak gösterdiği için &espawner &7kazandın!" to arg-1
                                make console execute command "ss give %arg-1% #kalan kismi bilmiyorum"
                                add arg-1 to {kullanilan::%player%::*}
                    else:
                        send "&3Davet &8> &7Kendi kodunu kullanamazsın!"
                else:
                    send "&3Davet &8> &7Oyuncu kod oluşturmamış!"
            else:
                send "&3Davet &8> &7Kullanım &e/referans <oyuncu> <oyuncunun kodu>"
        else:
            send "&3Davet &8> &7Kullanım &e/referans <oyuncu> <oyuncunun kodu>"
 
Kod:
command /invite:
    aliases: davet
    trigger:
        if {invite::%player%} is not set:
            set {invite::%player%} to random integer between 123456 and 999999
            send "&3Davet &8> &7Davet kodun &e%{invite::%player%}% &7olarak belirlendi!"
            send "&3Davet &8> &7Bu kodu arkadaşların girer ise &espawner &7kazanacaksın!"
        else:
            send "&3Davet &8> &7Zaten davet kodu oluşturdun! Kodun: &e%{invite::%player%}%"
command /referans [<offlineplayer>] [<number>]:
    trigger:
        if arg-1 is set:
            if arg-2 is set:
                if {invite::%arg-1%} is set:
                    if arg-1 is not "%player%":
                        if arg-2 is not {invite::%arg-1%}:
                            send "&3Davet &8> &7Kod yanlış!"
                        if arg-2 = {invite::%arg-1%}:
                            if {kullanilan::%player%::*} contains arg-1:
                                send "&3Davet &8> &7Bu kodu zaten kullandın!"
                            else:
                                send "&3Davet &8> &7Davet kodunu kullandın!"
                                send "&3Davet &8> &e%player% &7oyuncusu seni referans olarak gösterdiği için &espawner &7kazandın!" to arg-1
                                make console execute command "ss give %arg-1% #kalan kismi bilmiyorum"
                                add arg-1 to {kullanilan::%player%::*}
                    else:
                        send "&3Davet &8> &7Kendi kodunu kullanamazsın!"
                else:
                    send "&3Davet &8> &7Oyuncu kod oluşturmamış!"
            else:
                send "&3Davet &8> &7Kullanım &e/referans <oyuncu> <oyuncunun kodu>"
        else:
            send "&3Davet &8> &7Kullanım &e/referans <oyuncu> <oyuncunun kodu>"
internette aynısını bulmuştum zaten çalışmıyor
 
Son düzenleme:
Merhaba,
Kod:
command /invite:
    aliases: davet
    trigger:
        if {invite::%player%} is not set:
            set {invite::%player%} to random integer between 123456 and 999999
            send "&aDavet kodu başarıyla oluşturuldu! Davet kodunuz: &a%{invite::%player%}%" to player
            send "&aKod herhangi bir oyuncu tarafından kullanıldığında 50000 kazanacaksınız!" to player
        else:
            send "&cZaten bir davet kodu oluşturulmuş! Davet kodunuz: &a%{invite::%player%}%" to player
            
command /referans [<offlineplayer>] [<int>]:
    trigger:
        if arg-1 is set:
            if arg-2 is set:
                if {invite::%arg-1%} is set:
                    if arg-2 is not {invite::%arg-1%}:
                        send "&cGirilen kod hatalı!" to player
                    if arg-2 is {invite::%arg-1%}:
                        if {davetkullanim.%player%} is true:
                            send "&cÖnceden zaten bir kod kullanmışsın!" to player
                        if {davetkullanim.%player%} is not set:
                            set {davetkullanim.%player%} to true
                            send "&aKod başarıyla kullanıldı!" to player
                            execute console command "eco give %player% 50000" #Buraya bir miktar giriniz.
                            execute console command "eco give %arg-1% 50000" #Buraya bir miktar giriniz.
                            send "&3%player% adlı oyuncu sizin davet kodunuzu kullandığı için &f50000 &3miktarında para kazandınız!" to arg-1
                else:
                    send "&cBu oyuncunun oluşturduğu bir davet kodu yok!" to player
            else:
                send "&cBir kod giriniz." to player
        else:
            send "&cBir oyuncu giriniz." to player
Denenmiştir çalışmaktadır, buyrun.
 
Merhaba,
Kod:
command /invite:
    aliases: davet
    trigger:
        if {invite::%player%} is not set:
            set {invite::%player%} to random integer between 123456 and 999999
            send "&aDavet kodu başarıyla oluşturuldu! Davet kodunuz: &a%{invite::%player%}%" to player
            send "&aKod herhangi bir oyuncu tarafından kullanıldığında 50000 kazanacaksınız!" to player
        else:
            send "&cZaten bir davet kodu oluşturulmuş! Davet kodunuz: &a%{invite::%player%}%" to player
           
command /referans [<offlineplayer>] [<int>]:
    trigger:
        if arg-1 is set:
            if arg-2 is set:
                if {invite::%arg-1%} is set:
                    if arg-2 is not {invite::%arg-1%}:
                        send "&cGirilen kod hatalı!" to player
                    if arg-2 is {invite::%arg-1%}:
                        if {davetkullanim.%player%} is true:
                            send "&cÖnceden zaten bir kod kullanmışsın!" to player
                        if {davetkullanim.%player%} is not set:
                            set {davetkullanim.%player%} to true
                            send "&aKod başarıyla kullanıldı!" to player
                            execute console command "eco give %player% 50000" #Buraya bir miktar giriniz.
                            execute console command "eco give %arg-1% 50000" #Buraya bir miktar giriniz.
                            send "&3%player% adlı oyuncu sizin davet kodunuzu kullandığı için &f50000 &3miktarında para kazandınız!" to arg-1
                else:
                    send "&cBu oyuncunun oluşturduğu bir davet kodu yok!" to player
            else:
                send "&cBir kod giriniz." to player
        else:
            send "&cBir oyuncu giriniz." to player
Denenmiştir çalışmaktadır, buyrun.
tamam oldu teşekkürler.
 
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