İstek Tıklanabilir TPA skripti

LimonBoy

Marangoz
Mesajlar
45
En iyi cevaplar
0
Beğeniler
2
Puanları
40
Mesela biri tpa attığında tıklanabilecek.

Alıntı skriptleri atmayın denedim çalışmadı. tşeekkürler şimdiden
 


DragonTeam

Karanlıktan çek kurtar beni..
Mesajlar
64
En iyi cevaplar
19
Beğeniler
21
Puanları
120
Selamlar @LimonBoy,

Gereken Eklentiler; Json.sk(json.sk) tıklayarak indirebilirsin.
Gereken Permission; tpa.perm


Kod:
options:
    Time: 30 seconds

function clearTPA(code: text):
    delete {isinlan::tpa::%{_code}%::p1}
    delete {isinlan::tpa::%{_code}%::p2}
    delete {isinlan::tpa::%{_code}%::time}
command /tpa [<Player>]:
    permission: tpa.perm
    trigger:
        arg 1 is set:
            if {isinlan::tpatoggle::%arg-1%} is not set:
                set {_code} to random integer between 1111 and 9999
                set {isinlan::tpa::%{_code}%::p1} to player
                set {isinlan::tpa::%{_code}%::p2} to arg-1
                set {isinlan::tpa::%{_code}%::time} to now
                send "&e&l> &fSUNUCU &e&l> &7Bir Işınlanma İsteği Aldınız." to arg-1
                json("%arg-1%", "&a[KABUL ET]||ttp:&bİsteği Kabul Etmek İçin Tıklayın||cmd:/tpaccept %{_code}%||&c [REDDET] ||cmd:/tpadeny %{_code}%||ttp:&bİsteği Reddetmek İçin Tıklayın")
            else:
                send "&e&l> &fSUNUCU &e&l> &7Bu Kullanıcı Işınlanma Isteği Almak İstemiyor."

command /tpaccept [<text>]:
    trigger:
        if {isinlan::tpa::%arg-1%::p1} is set:
            set {_time} to difference between {isinlan::tpa::%arg-1%::time} and now
            if {_time} < {@Time}:
                teleport {isinlan::tpa::%arg-1%::p1} to {isinlan::tpa::%arg-1%::p2}
            else:
                send "&e&l> &fSUNUCU &e&l> &7İstek Zaman Aşımına Uğradı."
                send "&e&l> &fSUNUCU &e&l> &7Yolladığınız Işınlanma İsteği Kabul Edildi Fakat Zaman Aşımına Uğradı Tekrar Göndermek İsteyebilirsiniz." to {isinlan::tpa::%arg-1%::p1}
            clearTPA(arg-1)

command /tpadeny [<text>]:
    trigger:
        if {isinlan::tpa::%arg-1%::p1} is set:
            send "&e&l> &fSUNUCU &e&l> &7İstek Reddedildi."
            send "&e&l> &fSUNUCU &e&l> &7Yolladığınız Işınlanma İsteği Reddedildi." to {isinlan::tpa::%arg-1%::p1}
            clearTPA(arg-1)

command /tpatoggle:
    trigger:
        if {isinlan::tpatoggle::%player%} is not set:
            set {isinlan::tpatoggle::%player%} to true
            send "&e&l> &fSUNUCU &e&l> &7Işınlanma Istekleri Otomatik Olarak Reddedilecek."
        else:
            delete {isinlan::tpatoggle::%player%}
            send "&e&l> &fSUNUCU &e&l> &7Işınlanma Istekleri Otomatik Olarak Reddedilmeyecek."
 

LimonBoy

Marangoz
Mesajlar
45
En iyi cevaplar
0
Beğeniler
2
Puanları
40
Selamlar @LimonBoy,

Gereken Eklentiler; Json.sk(json.sk) tıklayarak indirebilirsin.
Gereken Permission; tpa.perm


Kod:
options:
    Time: 30 seconds

function clearTPA(code: text):
    delete {isinlan::tpa::%{_code}%::p1}
    delete {isinlan::tpa::%{_code}%::p2}
    delete {isinlan::tpa::%{_code}%::time}
command /tpa [<Player>]:
    permission: tpa.perm
    trigger:
        arg 1 is set:
            if {isinlan::tpatoggle::%arg-1%} is not set:
                set {_code} to random integer between 1111 and 9999
                set {isinlan::tpa::%{_code}%::p1} to player
                set {isinlan::tpa::%{_code}%::p2} to arg-1
                set {isinlan::tpa::%{_code}%::time} to now
                send "&e&l> &fSUNUCU &e&l> &7Bir Işınlanma İsteği Aldınız." to arg-1
                json("%arg-1%", "&a[KABUL ET]||ttp:&bİsteği Kabul Etmek İçin Tıklayın||cmd:/tpaccept %{_code}%||&c [REDDET] ||cmd:/tpadeny %{_code}%||ttp:&bİsteği Reddetmek İçin Tıklayın")
            else:
                send "&e&l> &fSUNUCU &e&l> &7Bu Kullanıcı Işınlanma Isteği Almak İstemiyor."

command /tpaccept [<text>]:
    trigger:
        if {isinlan::tpa::%arg-1%::p1} is set:
            set {_time} to difference between {isinlan::tpa::%arg-1%::time} and now
            if {_time} < {@Time}:
                teleport {isinlan::tpa::%arg-1%::p1} to {isinlan::tpa::%arg-1%::p2}
            else:
                send "&e&l> &fSUNUCU &e&l> &7İstek Zaman Aşımına Uğradı."
                send "&e&l> &fSUNUCU &e&l> &7Yolladığınız Işınlanma İsteği Kabul Edildi Fakat Zaman Aşımına Uğradı Tekrar Göndermek İsteyebilirsiniz." to {isinlan::tpa::%arg-1%::p1}
            clearTPA(arg-1)

command /tpadeny [<text>]:
    trigger:
        if {isinlan::tpa::%arg-1%::p1} is set:
            send "&e&l> &fSUNUCU &e&l> &7İstek Reddedildi."
            send "&e&l> &fSUNUCU &e&l> &7Yolladığınız Işınlanma İsteği Reddedildi." to {isinlan::tpa::%arg-1%::p1}
            clearTPA(arg-1)

command /tpatoggle:
    trigger:
        if {isinlan::tpatoggle::%player%} is not set:
            set {isinlan::tpatoggle::%player%} to true
            send "&e&l> &fSUNUCU &e&l> &7Işınlanma Istekleri Otomatik Olarak Reddedilecek."
        else:
            delete {isinlan::tpatoggle::%player%}
            send "&e&l> &fSUNUCU &e&l> &7Işınlanma Istekleri Otomatik Olarak Reddedilmeyecek."
çalışmıyor bugları var ve tıklama şeyi çıkmıyor
 

Üst