Çözüldü Sağ tıklayınca tıklanan oyuncunun {soygundurum.%player%} değerini değiştirme

Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

ArdaSari

Odunlara Vur Vur Vur!
Katılım
21 Haziran 2020
Mesajlar
37
Elmaslar
14
Puan
13.455
Konum
Istanbul
Minecraft
ArdaSari
X
ardasarico

Discord:

ArdaSari#0130

Merhaba bir oyuncu soygun yapan oyuncuya tıkladığında soyguncuya ait {soygundurum.%player%} değerini değiştirmek istiyorum ama nasıl yapacağımı bir türlü çözemedim yardımcı olabilirmisiniz?
 
Kod:
variables:
    {soygundurum.%player%} = 0
options:
    bekleme: 5
    prefix: &c&lBanka &8&l» &7
 
command /soygun:
    trigger:
        send "{@prefix}Hırsızlık Yetenekleri hakkında bilgi almak için &c/hyetenek"
        send "{@prefix}ATM oluşturmak için &c/atm"
 
command /atm [<text>]:
    permission: atm.admin
    trigger:
        if arg-1 is not set:
            send "{@prefix}ATM oluşturmak için &c/atm olustur"
            send "{@prefix}ATM'yi kaldırmak için &c/atm kaldir"
        if arg-1 is "olustur":
            if targeted block is sign:
                set line 2 of targeted block to "&9[ATM]"
                set line 3 of targeted block to "&a[Soyulmamis]"
                set {atm.tabela.%location of targeted block%} to 1
            else:
                send "{@prefix}Bir tabelaya bakmalısın"
        if arg-1 is "kaldir":
            if targeted block is sign:
                if {atm.tabela.%location of targeted block%} is set:
                    delete {atm.tabela.%location of targeted block%}
                    set line 2 of targeted block to ""
                    set line 3 of targeted block to ""
                    send "&7ATM başarıyla kaldırırldı"
                else:
                    send "{@prefix}Bu bir atm değil !"


   


 
on right click on sign:
    {atm.tabela.%location of clicked block%} is set:
        line 2 of clicked block is "&9[ATM]":
            if line 3 of the clicked block is "&a[Soyulmamis]":
                set {soygundurum.%player%} to 1
                apply blindness 30 to the player for 50 seconds
                send player title "&aSoygun Başladı" with subtitle "&c&l▌"
                set line 3 of the clicked block to "&c[Soyulmus]"              
                loop 200 times:
                    send ""  
                send "&8&l» &7ATM Soyuluyor..."
                wait 2 seconds
                if {soygundurum.%player%} is 1:
                    loop 200 times:
                        send ""
                    send "&a▌▌▌"
                    send player title "&aSoygun devam ediyor" with subtitle "&c&l▌▌▌"                  
                    wait 2 seconds
                    if {soygundurum.%player%} is 1:
                        loop 200 times:
                            send ""
                        send "&a▌▌▌▌▌▌"
                        send player title "&aSoygun devam ediyor" with subtitle "&c&l▌▌▌▌▌▌"                      
                        wait 2 seconds
                        if {soygundurum.%player%} is 1:
                            loop 200 times:
                                send ""
                            send "&a▌▌▌▌▌▌▌▌▌"
                            send player title "&aSoygun devam ediyor" with subtitle "&c&l▌▌▌▌▌▌▌▌▌"                
                            wait 2 seconds
                            if {soygundurum.%player%} is 1:
                                loop 200 times:
                                    send ""
                                send "&a▌▌▌▌▌▌▌▌▌▌▌▌"
                                send player title "&aSoygun devam ediyor" with subtitle "&c&l▌▌▌▌▌▌▌▌▌▌▌▌▌"                                
                                wait 2 seconds
                                if {soygundurum.%player%} is 1:
                                    loop 200 times:
                                        send ""
                                    wait 2 second
                                    send player title "&aSoygun Başarılı" with subtitle "&c&lHAHA PARALARRR"  
                                    if {soygundurum.%player%} is 1:
                                        broadcast "&c%player% &7isimli oyuncu bankadaki ATM'yi başarı ile soydu !"
                                        send "&7ATM Başarıyla Soyuldu !"
                                        set {_x} to random integer between 0 and 1000
                                        remove blindness from player
                                        set {soygundurum.%player%} to 0
                                        wait 5 seconds
                                        set line 3 of the clicked block to "&a[Soyulmamis]"
            else:
                send "Bu ATM daha önce soyulmuş !"




on player move:
    if {soygundurum.%player%} is 1:
        cancel event
on command:
    if {soygundurum.%player%} is 1:
        send "{@prefix} &cSoygunda komut kullanamazsın."
        cancel event
on chat:
    if {soygundurum.%player%} is 1:
        send "{@prefix} &c Soygun esnasında konuşamazsın"  
        cancel event


başka bir oyuncu ağ tıkladığında yakalama sistemini eklemek istiyorum ama
soygunu iptal etmek için {soygundurum.%player%} verisini değiştirmem gerek nasıl yapacağımı tam çözemedim
 
Güzel fikir aklıma şöyle bir şey geldi. Yumrukla sağ tıklayınca değil de bir eşya ile (mesela kelepçe yapabilirsiniz adını) sağ tıklayınca yakalayabilsin.

Eğer soygundurum 1 ise Kelepçe isimli tuzak kancası ile sağ tıklanan oyuncunun soygun durumunu 0'a çekecek. Ekleme yaparsın. Eğer soygun sırasında olmayan birine kelepçe ile sağ tıklanırsa oyuncunun soygunda olmadığını belirtecek. Sen denersin ben denemedim.

Kod:
on right click on a player with a tripwire hook:
    if tool's name is "Kelepçe:
        if {soygundurum.%clicked entity%} is 1:
            send "&c%player% &fsizi yakaladı." to %clicked entity%
            send "&c%clicked entity% &foyuncusunu kelepçelediniz." to player
            set {soygundurum.%clicked entity%} to 0
        else:
            send "&c%clicked entity% &fbir soygunda değil." to player

Eğer kelepçesiz istersen buyur (Ama soygunda olmayan biri için durum mesajı yaparsak her oyuncu kelepçeleyebilecek. Eğer polis tarzı rütbeler vereceksen oyunculara perm ataması yapabilirsin.

İstediğin:
Kod:
on right click on a player:
    if {soygundurum.%clicked entity%} is 1:
        send "&c%player% &fsizi yakaladı." to %clicked entity%
        send "&c%clicked entity% &foyuncusunu kelepçelediniz." to player
        set {soygundurum.%clicked entity%} to 0

Permli ve soygunda olmadığını belirtebilen sk:
Kod:
on right click on a player:
    if player has permission "ben.polisim":
        if {soygundurum.%clicked entity%} is 1:
            send "&c%player% &fsizi yakaladı." to %clicked entity%
            send "&c%clicked entity% &foyuncusunu kelepçelediniz." to player
            set {soygundurum.%clicked entity%} to 0
        else:
            send "&c%clicked entity% &fbir soygunda değil."
 
Güzel fikir aklıma şöyle bir şey geldi. Yumrukla sağ tıklayınca değil de bir eşya ile (mesela kelepçe yapabilirsiniz adını) sağ tıklayınca yakalayabilsin.

Eğer soygundurum 1 ise Kelepçe isimli tuzak kancası ile sağ tıklanan oyuncunun soygun durumunu 0'a çekecek. Ekleme yaparsın. Eğer soygun sırasında olmayan birine kelepçe ile sağ tıklanırsa oyuncunun soygunda olmadığını belirtecek. Sen denersin ben denemedim.

Kod:
on right click on a player with a tripwire hook:
    if tool's name is "Kelepçe:
        if {soygundurum.%clicked entity%} is 1:
            send "&c%player% &fsizi yakaladı." to %clicked entity%
            send "&c%clicked entity% &foyuncusunu kelepçelediniz." to player
            set {soygundurum.%clicked entity%} to 0
        else:
            send "&c%clicked entity% &fbir soygunda değil." to player

Eğer kelepçesiz istersen buyur (Ama soygunda olmayan biri için durum mesajı yaparsak her oyuncu kelepçeleyebilecek. Eğer polis tarzı rütbeler vereceksen oyunculara perm ataması yapabilirsin.

İstediğin:
Kod:
on right click on a player:
    if {soygundurum.%clicked entity%} is 1:
        send "&c%player% &fsizi yakaladı." to %clicked entity%
        send "&c%clicked entity% &foyuncusunu kelepçelediniz." to player
        set {soygundurum.%clicked entity%} to 0

Permli ve soygunda olmadığını belirtebilen sk:
Kod:
on right click on a player:
    if player has permission "ben.polisim":
        if {soygundurum.%clicked entity%} is 1:
            send "&c%player% &fsizi yakaladı." to %clicked entity%
            send "&c%clicked entity% &foyuncusunu kelepçelediniz." to player
            set {soygundurum.%clicked entity%} to 0
        else:
            send "&c%clicked entity% &fbir soygunda değil."
çok teşekkürler :)
 
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