- Katılım
- 30 May 2019
- Mesajlar
- 86
- Beğeni
- 49
- Puanları
- 1,505
JavaScript:
options:
prefix: &r &c[&eTeke Tek&c] &8>&c
command /1v1 [<player>]:
trigger:
set {k.isim.%player%} to player
if arg-1 is set:
if {k.isim.%player%} isn't player:
if {1v1.aktif.%arg-1%} isn't set:
if {1v1.aktif.%player%} isn't set:
set {1v1.aktif.%arg-1%} to "1"
set {1v1.aktif.%player%} to "1"
set {isim.%player%} to arg-1
send "&8&l&m---------------------" to arg-1
send "&6&l > &e%player% Adli Oyuncudan 1v1 İsteği Geldi!" to arg-1
send "&6&l > &eKabul Etmek İçin &m|&r&c ./kabulet &e&m|&r&e Yazınız" to arg-1
send "&6&l > &cEğer Kabul Edersen 3 Saniye Sonra Başlıyacak!" to arg-1
send "&6&l > &cKabul Etme Süren 30 Saniye!" to arg-1
send "&8&l&m---------------------" to arg-1
send "&8&l&m---------------------" to player
send "&6&l > &e%arg-1% Oyuncusuna 1v1 İsteği Yolladınız." to player
send "&6&l > &cEğer Kabul Ederde 3 Saniye Sonra Başlıyacak!" to player
send "&8&l&m---------------------" to player
wait 30 second
if {1v1.başladı} isn't set:
delete {1v1.aktif}
delete {1v1.aktif.%arg-1%}
delete {1v1.aktif.%player%}
send "{@prefix} İstek Zaman Aşımına Uğradı" to player or arg-1
wait 10 second
delete {1v1.aktif.%arg-1%}
else:
send "{@prefix} Tekrar İstek Yollamak İçin Biraz Bekle..." to player
else:
send "{@prefix} Bu Oyuncunun Zaten İsteği Var." to player
else:
send "{@prefix} Kendine 1v1 İsteği Yollayamasın!" to player
command /kabulet:
trigger:
wait 3 second
send "{@prefix} Başlamasına 3 Saniye Kaldı!!" to player or {isim.%player%}
if {1v1.aktif.%player%} is "1":
if {isim.%player%} is online:
if {kabulet} isn't set:
set {kabulet} to "1"
set {1v1.başladı} to "1"
teleport {isim.%player%} to {1v11}
send "{@prefix} Başarılar!!" to {isim.%player%}
teleport player to {1v10}
send "{@prefix} Başarılar!!" to player
wait 60 second
delete {kabulet}
teleport player to {1v1.lobi}
teleport {isim.%player%} to {1v1.lobi}
send "{@prefix} Süre Bitti!!" to {isim.%player%} or player
delete {isim.%player%}
delete {1v1.aktif.%player%}
else:
send "{@prefix} Tekrar Kabul Et Diyemessin!!"
else:
send "{@prefix} Aktif Bir İsteğin Yok!!" to player
command /1v1set2:
permission: "v.admin"
trigger:
set {1v11} to location of player
message "{@prefix} &6Ayarlandı !" to player
command /1v1set:
permission: "pro.admin"
trigger:
set {1v10} to location of player
message "{@prefix} &6Ayarlandı !" to player
command /1v1setlobi:
permission: "pro.admin"
trigger:
set {1v1.lobi} to location of player
message "{@prefix} &6Ayarlandı !" to player
on death:
if {isim.%attacker%} is set:
if {1v1.başladı} is "1":
delete {1v1.aktif.%attacker%}
delete {isim.%attacker%}
delete {1v1.aktif}
teleport attacker to {1v1.lobi}
teleport victim to {1v1.lobi}
on quit:
if {1v1.aktif.%player%} is set:
delete {1v1.aktif.%player%}
delete {1v1.aktif}
on join:
delete {1v1.aktif.%player%}
Son düzenleme: