Çözüldü Puan sistemi

  • Konuyu Başlatan Konuyu Başlatan Demacor
  • Başlangıç tarihi Başlangıç tarihi
  • Görüntüleme 1.165
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

Demacor

Örümcek Hoşt!
Katılım
24 Ocak 2019
Mesajlar
363
Elmaslar
45
Puan
0
Yaş
22
Minecraft
Demacor
Merhaba
sunucuda biri Canavar, Hayvan öldürünce Oyuncuya puan gelsin
Canavar = 2 Puan (canavar başına)
Hayvan = 1 Puan (hayvan başına) gelsin

/puan yazınca oyuncular kendi puanını görebilsin.
/sıralama yazınca En çok puanı olan ilk 3 kişinin adı yazsın
ÖRN:

EN ÇOK PUANI OLANLAR:

1. Demacor = 1000 Puan
2. Demacor1 = 500 Puan
3. Demacor2 = 300 Puan

diye olsun

şimdiden teşekkürler
 
Kod:
on death:
    if attacker is a player:
        if victim is zombie or skeleton or zombie pigman or blaze or ghast or spider or cave spider:
            add 2 to {puan::%attacker%}
        if victim is pig or sheep or cow:
            add 1 to {puan::%attacker%}

command /puan:
    trigger:
        send "&aPuanın: &e%{puan::%player%}%" to player

command /sıralama:
    trigger:
        loop {puan::*}:
            add 1 to {_size}
            if {_low.to.high.list::%loop-value%} is not set:
                set {_low.to.high.list::%loop-value%} to loop-index
            else:
                set {_n} to 0
                loop {_size} times:
                    set {_n} to {_n}+1
                    {_low.to.high.list::%loop-value-1%.%{_n}%} is not set
                    set {_low.to.high.list::%loop-value-1%.%{_n}%} to loop-index
                    stop loop
        wait 1 tick
        set {_n} to size of {_low.to.high.list::*}
        loop {_low.to.high.list::*}:
            set {_high.to.low.list::%{_n}%} to loop-value
            set {_n} to {_n}-1
        wait 1 tick
        message " &a&nEN ÇOK PUANA SAHİP 3 KİŞİ"
        loop {_high.to.low.list::*}:
            add 1 to {_result}
            send "&b%loop-value%&7: &e%{puan::%player%}% puan"
            if {_result} is 3:
                stop

Dener misiniz?
 
Kod:
on death:
    if attacker is a player:
        if victim is zombie or skeleton or zombie pigman or blaze or ghast or spider or cave spider:
            add 2 to {puan::%attacker%}
        if victim is pig or sheep or cow:
            add 1 to {puan::%attacker%}

command /puan:
    trigger:
        send "&aPuanın: &e%{puan::%player%}%" to player

command /sıralama:
    trigger:
        loop {puan::*}:
            add 1 to {_size}
            if {_low.to.high.list::%loop-value%} is not set:
                set {_low.to.high.list::%loop-value%} to loop-index
            else:
                set {_n} to 0
                loop {_size} times:
                    set {_n} to {_n}+1
                    {_low.to.high.list::%loop-value-1%.%{_n}%} is not set
                    set {_low.to.high.list::%loop-value-1%.%{_n}%} to loop-index
                    stop loop
        wait 1 tick
        set {_n} to size of {_low.to.high.list::*}
        loop {_low.to.high.list::*}:
            set {_high.to.low.list::%{_n}%} to loop-value
            set {_n} to {_n}-1
        wait 1 tick
        message " &a&nEN ÇOK PUANA SAHİP 3 KİŞİ"
        loop {_high.to.low.list::*}:
            add 1 to {_result}
            send "&b%loop-value%&7: &e%{puan::%player%}% puan"
            if {_result} is 3:
                stop

Dener misiniz?
oldu konu çözüldü teşekkürler
 
Konu çözüldügü için kilitlendi.
 
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

Hala Discord sunucumuza katılmadın mı?

Büyük bir topluluğun parçası ol, etkinliklere katıl ve özel hediyeler kazanma şansı yakala!

Şimdi Katıl
Üst