Arkadaşlar elimde bi skript var bounty skripti
Ama ben "/bountyver (oyuncu) (miktar)" komutu ile oyuncunun kendi bountysinden baskasinin bountysine aktarmasini istiyorum ve
birde "/bountysil (oyuncu) (miktar)" ile bounty silecek
birde "/bountyekle (oyuncu) (miktar)" ile bedavaya istediginiz kadar bounty ekleyebileceksiniz
bounty skripti:
Ama ben "/bountyver (oyuncu) (miktar)" komutu ile oyuncunun kendi bountysinden baskasinin bountysine aktarmasini istiyorum ve
birde "/bountysil (oyuncu) (miktar)" ile bounty silecek
birde "/bountyekle (oyuncu) (miktar)" ile bedavaya istediginiz kadar bounty ekleyebileceksiniz
bounty skripti:
Kod:
#AYARLAR:
options:
prefix: &9> #Server ismi veya serverin sistemi.
deathbounty: 8 #Ölünce kaç bounty gideceği.
killbounty: 12 #Öldürünce kaç bounty gelceği.
odulal: 1000 #/odulal
playerprefix: on #Kapatılmaz
permission: bounty.perm #Yetki ayarlar.
#KOD
on death:
add {@killbounty} to {bounty.%attacker%}
remove {@deathbounty} from {bounty.%victim%}
on death:
victim is a player
attacker is a player
send "{@prefix} &3Oldugun icin &8[&e{@deathbounty}&8] &3puan kaybettin&8!" to victim
send "{@prefix} &3Birisini oldurdugun icin &8[&e{@killbounty}&8] &3puan kazandin %colored player's prefix% %player's display name%&8!" send to attacker
on join:
add 0 to {bounty.%player%}
on command "kit bounty":
cancel event
if {bounty.%player%} is bigger than 499:
remove 500 from {bounty.%player%}
give diamond sword to player
message "{@prefix} &eElmas Kilic aldin!"
else:
message "{@prefix} &eYetersiz bounty, en fazla toplam 500 bounty gerekli!"