command /spawnbelirle:
permission: sk.admin
permission message: &4Yetkin yok!
trigger:
set {spawn} to location of player
send "&7Başarılı!"
command /atıcı <text>:
permission: sk.admin
permission message: &4Yetkin yok!
trigger:
if arg-1 is "ilk":
set {yakartop::i} to location of player
send "&7Ilk kişinin yeri ayarlandı!"
if arg-1 is "son":
set {yakartop::s} to location of player
send "&7Son kişinin yeri ayarlandı!"
if arg-1 is "orta":
set {yakartop::o} to location of player
send "&7Ortadaki kişinin yeri ayarlandı!"
command /yakartop <text> [<player>]:
permission: sk.admin
permission message: &4Yetkin yok!
trigger:
if arg-2 is set:
if arg-1 is "ilk":
set {yakartop::i::p} to arg-2
if arg-1 is "son":
set {yakartop::s::p} to arg-2
if arg-1 is "orta":
add arg-2 to {yakartop::o::*}
else:
if arg-1 is "başlat":
if {yakartop::i::p} is not set:
send "&7Ilk oyuncu seçilmedi!"
stop
if {yakartop::s::p} is not set:
send "&7Ilk oyuncu seçilmedi!"
stop
if {yakartop::o::*} is not set:
send "&7Ortadaki oyuncular seçilmedi!"
stop
teleport {yakartop::i::p} to {yakartop::i}
give a bow named "&6Yakar Top" to {yakartop::i::p}
give an arrow to {yakartop::i::p}
teleport {yakartop::s::p} to {yakartop::s}
give a bow named "&6Yakar Top" to {yakartop::s::p}
loop {yakartop::o::*}:
teleport loop-value to {yakartop::o}
shoot:
shooter is a player
if {yakartop::i::p} is shooter:
give an arrow to {yakartop::s::p}
else if {yakartop::s::p} is shooter:
give an arrow to {yakartop::i::p}
damage:
projectile is an arrow
attacker is a player
victim is a player
if {yakartop::o::*} contains victim:
remove victim from {yakartop::o::*}
teleport victim to {spawn}
if size of {yakartop::o::*} = 0:
delete {yakartop::o::*}
teleport {yakartop::i::p} to {spawn}
teleport {yakartop::s::p} to {spawn}
delete {yakartop::i::p}
delete {yakartop::s::p}