- Mesajlar
- 483
- En iyi cevaplar
- 0
- Beğeniler
- 733
- Puanları
- 960
- Ruh hali
Minecraft TPA Skript
Selamlar sevgili Forum Gamer takipçileri, bu konumuzda Minecraft TPA Skript'ini paylaşacağız.
Tpa Skript'i Ne İşe Yarar?
Eğer herhangi bir sunucuda oynadıysanız büyük ihtimalle bildiğiniz TPA sistemi oyuncuların birbirine ışınlanmasını sağlar. Bir oyuncu diğer oyuncuya ışınlanma isteği gönderir eğer gönderdiği oyuncu ışınlanma isteğini kabul ederse 3 saniye beklenir, eğer oyuncu hareket etmez ise 3 saniye sonunda istek attığı oyuncuya ışınlanır.
Tpa Skript'i Komutları
/tpa <oyuncuismi> : <oyuncuismi> yazılan kısma oyuncu ismi yazılarak ışınlanma isteği gönderilir.
/tpaccept: En son gelen ışınlanma isteğini kabul eder.
/tpdeny: En son gelen ışınlanma isteğini reddet işlemini uygular.
/tpblock: Tpa isteklerini almayı kapatır/açar.
Ayrıca V.I.P veya başka grupların beklemeden ışınlanmasını istiyorsanız o gruplara/oyunculara "teleport.bypass" yetkisini verebilirsiniz.
Skript Kodu;
Kod:
options:
ep: &e&lTPA >
on join:
if {tpastat::%player%} is not set:
set {tpastat::%player%} to true
command /tpa [<player>]:
trigger:
if arg-1 is set:
if {tpareq::%player%::%arg-1%} is not set:
if {tpastat::%arg-1%} is true:
set {tpareq::%player%::%arg-1%} to true
set {tpas::%arg-1%} to player
send "{@ep} &a%player% adlı oyuncu size ışınlanma isteği gönderdi. &6Kabul etmek için /tpaccept &creddetmek için /tpdeny" to arg-1
wait 20 seconds
if {tpareq::%player%::%arg-1%} is set:
delete {tpareq::%player%::%arg-1%}
if {tpas::%arg-1%} is set:
delete {tpas::%arg-1%}
else:
send "{@ep} &aOyuncu tpa isteklerine kapalı."
else:
send "{@ep} &aBu kullanıcıya zaten istek göndermişsin isteğin zamanının geçmesini bekle."
else:
send "{@ep} &a/tpa <oyuncu>"
command /tpaccept:
trigger:
if {tpas::%player%} is set:
delete {tpareq::%{tpas::%player%}%::%player%}
delete {tpareq::%player%::%{tpas::%player%}%}
send "{@ep} &aIşınlanma isteği kabul edildi." to {tpas::%player%}
send "{@ep} &aIşınlanma isteğini kabul ettiniz." to player
set {_p} to {tpas::%player%}'s location
if {tpas::%player%} has permission "teleport.bypass":
teleport {tpas::%player%} to player
send "{@ep} &aIşınlanma başarılı." to {tpas::%player%}
delete {tpas::%player%}
else:
send "{@ep} &a3 saniye sonra ışınlanacaksınız hareket etmeyin." to {tpas::%player%}
loop 3 times:
distance between {_p} and {tpas::%player%} < 1:
if loop-number is 3:
teleport {tpas::%player%} to player
send "{@ep} &aIşınlanma başarılı." to {tpas::%player%}
delete {tpas::%player%}
else:
send "{@ep} &cIşınlanma iptal edildi." to {tpas::%player%}
delete {tpas::%player%}
stop loop
wait 1 seconds
else:
send "{@ep} &aSize gelen bir ışınlanma isteği bulunmamakta."
command /tpdeny:
trigger:
if {tpas::%player%} is set:
delete {tpareq::%{tpas::%player%}%::%player%}
send "{@ep} &aIşınlanma isteğini reddettiniz."
send "{@ep} &a%player% adlı oyuncu ışınlanma isteğinizi reddetti." to {tpas::%player%}
delete {tpas::%player%}
else:
send "{@ep} &aSize gelen bir ışınlanma isteği bulunmamakta."
command /tpblock:
trigger:
if {tpastat::%player%} is true:
set {tpastat::%player%} to false
send "{@ep} &aArtık tpa isteklerini almayacaksınız."
else:
set {tpastat::%player%} to true
send "{@ep} &aArtık tpa isteklerini alabilirsiniz."