- Katılım
- 2 Aralık 2017
- Mesajlar
- 279
- Elmaslar
- 62
- Puanlar
- 4.170
- Yaş
- 24
Damage kısmında sorun var sadece anladıgım kadarıyla
Kod:
on damage of player:
if player's world is "conconcraft":
if victim is player:
if attacker is player:
if {takimoldu.%attacker%.%victim%} is true:
cancel event
if {takimoldu.%victim%.%attacker%} is true:
cancel event
else:
stop
else:
stop
command /takimistek [<player>]:
trigger:
if player's world is "conconcraft":
if arg-1 is not set:
send player title "&c&lHATA" with subtitle "&aBir &6Oyuncu &aismi girmelisin" for 4 seconds
else:
send "&7[&c&lIors&f&lNetwork&7] &e» &b%player% &aSizinle takım kurmak istiyor kabul etmek için &e/takim onayla %player% &cReddetmek &aiçin &e/takim reddet %player% &akomutu'nu giriniz" to arg-1
send "&7[&c&lIors&f&lNetwork&7] &e» &b%arg-1% &aAdlı oyuncuya istek gönderildi" to player
set {takimistegi.%arg 1%.%player%} to true
else:
send "&7[&c&lIors&f&lNetwork&7] &e» &aBu komut &e/conconcraft &aSunucusuna özeldir!" to player
command /takim [<text>] [<player>]:
trigger:
if player's world is "conconcraft":
if arg-1 is not set:
send "&7[&c&lIors&f&lNetwork&7] &e» &aKullanım&6: &e/takim onayla <Nick> &bYa da &e/takim reddet <Nick>" to player
if arg-2 is not set:
send player title "&c&lHATA" with subtitle "&aBir &6Oyuncu &aismi girmelisin" for 4 seconds
if arg-1 is "onayla":
if {takimistegi.%player%.%arg 2%} is true:
set {takimoldu.%player%.%arg 2%} to true
send "&7[&c&lIors&f&lNetwork&7] &e» &aIstek kabul edildi!" to player
send "&7[&c&lIors&f&lNetwork&7] &e» &aIstek kabul edildi! &e/takimayril %player% &ayazarak ayrılabilirsiniz!" to arg-2
else:
send "&7[&c&lIors&f&lNetwork&7] &e» &aBu oyuncu size istek atmamış!" to player
if arg-1 is "reddet":
if {takimistegi.%player%.%arg 2%} is true:
send "&7[&c&lIors&f&lNetwork&7] &e» &aIstek &creddedildi!" to player
send "&7[&c&lIors&f&lNetwork&7] &e» &aIstek &creddedildi!" to arg-2
set {takimistegi.%player%.%arg 2%} to false
else:
send "&7[&c&lIors&f&lNetwork&7] &e» &aBu oyuncu size istek atmamış!" to player
else:
send "&7[&c&lIors&f&lNetwork&7] &e» &aBu komut &e/conconcraft &aSunucusuna özeldir!" to player
command /takimayril [<player>]:
trigger:
if player's world is "conconcraft":
if arg-1 is not set:
send player title "&c&lHATA" with subtitle "&aBir &6Oyuncu &aismi girmelisin" for 4 seconds
if arg-1 is online:
if {takimoldu.%player%.%arg 1%} is true:
set {takimoldu.%player%.%arg 1%} to false
set {takimistegi.%player%.%arg 1%} to false
send "&aTakımdan ayrıldınız" to player
else:
send "&7[&c&lIors&f&lNetwork&7] &e» &aBu oyuncu ile bir takımınız yok!" to player
else:
send "&7[&c&lIors&f&lNetwork&7] &e» &aBu komut &e/conconcraft &aSunucusuna özeldir!" to player