Bulundu event oylama sk

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

Doğukan Solak

Odunlara Vur Vur Vur!
Katılım
24 Temmuz 2018
Mesajlar
42
Elmaslar
7
Puan
0
Yaş
26
Minecraft
orjinal yok
arkadaşlar event yapmadan önce bi komut yazıcam ve sunucuda bütün aktiflerin önüne bi menü açılıcak ve bütün eventler olucak 1dk sonra oylama biticek ve chatte (1. şukadar oyla şu event olmuştur) yazacak böyle bi skript konusunda yardım edebilirmisiniz
 
Kod:
function vote(p: player, oy: text):
    delete {menu::%{_p}%}
    add 1 to {vote::%{_oy}%}
    send "&7%{_oy}% oyunu verdin!" to {_p}

function menu(p: player):
    open virtual chest with size 1 named "&6Bahis Oyna" to {_p}
    format gui slot 4 of {_p} with gold ingot named "&7Dolar Eventi" with lore "&7Tıkla ve dolar eventini oyla!" to run function vote({_p}, "dolar")
    format gui slot 5 of {_p} with diamond named "&7Euro Eventi" with lore "&7Tıkla ve euro eventini oyla!" to run function vote({_p}, "euro")
    format gui slot 6 of {_p} with emerald named "&7Sterlin Eventi" with lore "&7Tıkla ve sterlin eventini oyla!" to run function vote({_p}, "sterlin")

command /oylattır:
    permission: sk.admin
    permission message: &4Yetkin yok!
    trigger:
        loop all players:
            set {menu::%loop-player%} to true
            menu(loop-player)
        wait 60 seconds
        broadcast "&7Event oyları: Dolar: %{vote::dolar}%, Euro: %{vote::euro}%, Sterlin: %{vote::sterlin}%"
        loop {menu::*}:
            delete {menu::%loop-value%}
            close loop-value's inventory
        delete {vote::*}

inventory close:
    if {menu::%player%} is set:
        cancel event
        menu(player)
 
Kod:
function vote(p: player, oy: text):
    delete {menu::%{_p}%}
    add 1 to {vote::%{_oy}%}
    send "&7%{_oy}% oyunu verdin!" to {_p}

function menu(p: player):
    open virtual chest with size 1 named "&6Bahis Oyna" to {_p}
    format gui slot 4 of {_p} with gold ingot named "&7Dolar Eventi" with lore "&7Tıkla ve dolar eventini oyla!" to run function vote({_p}, "dolar")
    format gui slot 5 of {_p} with diamond named "&7Euro Eventi" with lore "&7Tıkla ve euro eventini oyla!" to run function vote({_p}, "euro")
    format gui slot 6 of {_p} with emerald named "&7Sterlin Eventi" with lore "&7Tıkla ve sterlin eventini oyla!" to run function vote({_p}, "sterlin")

command /oylattır:
    permission: sk.admin
    permission message: &4Yetkin yok!
    trigger:
        loop all players:
            set {menu::%loop-player%} to true
            menu(loop-player)
        wait 60 seconds
        broadcast "&7Event oyları: Dolar: %{vote::dolar}%, Euro: %{vote::euro}%, Sterlin: %{vote::sterlin}%"
        loop {menu::*}:
            delete {menu::%loop-value%}
            close loop-value's inventory
        delete {vote::*}

inventory close:
    if {menu::%player%} is set:
        cancel event
        menu(player)
saol deneyeceğim
 
Sorun çözüldüyse belirtiniz.
 
hocam site hata verio açamıyom sunucuyu deneyeccemde
Gönderi otomatik olarak birleştirildi:

/oylattir yazdığımda altta direk msj yazzıyo Event oylari: Dolar:<none> euro:<none> sterlin:<none> fln dio ama benim istediğim oyuncuların önüne menü açılıcak ve onlar istediğini seçicek
 
Moderatör tarafından düzenlendi:
60 saniye bekletiyor direkt broadcastın gelmesine olanak yok.

Kod:
function vote(p: player, oy: text):
    delete {menu::%{_p}%}
    close {_p}'s inventory
    add 1 to {vote::%{_oy}%}
    send "&7%{_oy}% oyunu verdin!" to {_p}

function menu(p: player):
    open virtual chest with size 1 named "&6Oy Ver" to {_p}
    format gui slot 4 of {_p} with gold ingot named "&7Dolar Eventi" with lore "&7Tıkla ve dolar eventini oyla!" to run function vote({_p}, "dolar")
    format gui slot 5 of {_p} with diamond named "&7Euro Eventi" with lore "&7Tıkla ve euro eventini oyla!" to run function vote({_p}, "euro")
    format gui slot 6 of {_p} with emerald named "&7Sterlin Eventi" with lore "&7Tıkla ve sterlin eventini oyla!" to run function vote({_p}, "sterlin")

command /oylattır:
    permission: sk.admin
    permission message: &4Yetkin yok!
    trigger:
        set {vote::dolar} to 0
        set {vote::euro} to 0
        set {vote::sterlin} to 0
        loop all players:
            set {menu::%loop-player%} to true
            menu(loop-player)
        wait 60 seconds
        broadcast "&7Event oyları: Dolar: %{vote::dolar}%, Euro: %{vote::euro}%, Sterlin: %{vote::sterlin}%"
        loop {menu::*}:
            delete {menu::%loop-value%}
            close loop-value's inventory
        delete {vote::*}

inventory close:
    if {menu::%player%} is set:
        cancel event
        menu(player)
 
hocam eğer menü geliosa oylama yapılıyosa skıntı yok 2dk da beklerim
 
Kendi sunucumda denedim çalışıyor. Kullandıklarım:

Spigot 1.12.2-R0.1-SNAPSHOT
Değerli ziyaretçimiz, içeriği görebilmek için şimdi giriş yapın veya kayıt olun.

Değerli ziyaretçimiz, içeriği görebilmek için şimdi giriş yapın veya kayıt olun.

Değerli ziyaretçimiz, içeriği görebilmek için şimdi giriş yapın veya kayıt olun.



Kod:
function vote(p: player, oy: text):
    delete {menu::%{_p}%}
    close {_p}'s inventory
    add 1 to {vote::%{_oy}%}
    send "&7%{_oy}% oyunu verdin!" to {_p}

function menu(p: player):
    open virtual chest with size 1 named "&6Oy Ver" to {_p}
    format gui slot 3 of {_p} with gold ingot named "&7Dolar Eventi" with lore "&7Tıkla ve dolar eventini oyla!" to run function vote({_p}, "dolar")
    format gui slot 4 of {_p} with diamond named "&7Euro Eventi" with lore "&7Tıkla ve euro eventini oyla!" to run function vote({_p}, "euro")
    format gui slot 5 of {_p} with emerald named "&7Sterlin Eventi" with lore "&7Tıkla ve sterlin eventini oyla!" to run function vote({_p}, "sterlin")

command /oylattır:
    permission: sk.admin
    permission message: &4Yetkin yok!
    trigger:
        set {vote::dolar} to 0
        set {vote::euro} to 0
        set {vote::sterlin} to 0
        loop all players:
            set {menu::%loop-player%} to true
            menu(loop-player)
        wait 60 seconds
        broadcast "&7Event oyları: Dolar: %{vote::dolar}%, Euro: %{vote::euro}%, Sterlin: %{vote::sterlin}%"
        loop {menu::*}:
            delete {menu::%loop-value%}
            close loop-value's inventory
        delete {vote::*}

inventory close:
    if {menu::%player%} is set:
        wait 3 tick
        menu(player)
 
Kod:
command /oylat:
    trigger:
        delete {oy1}
        delete {oy2}
        delete {oy3}
        loop all players:
            set {oymenu.%loop-player%} to true
            open chest with 1 row named "Oyla" to loop-player
            format slot 0 of loop-player with iron ingot named "1" to close then run [make player execute command "/oyla 1"]
            format slot 1 of loop-player with gold ingot named "2" to close then run [make player execute command "/oyla 2"]
            format slot 2 of loop-player with diamond named "3" to close then run [make player execute command "/oyla 3"]
            wait 20 seconds
            delete {oymenu.%loop-player%}
            broadcast "%{kazanan.sayi}% oyla %{kazanan}% kazandı."

command /oyla <int>:
    trigger:
        if {oymenu.%player%} is set:
            if arg 1 is 1:
                add 1 to {oy1}
                if {kazanan} is not set:
                    set {kazanan} to "1"
                    set {kazanan.sayi} to {oy1}
                else:
                    if {oy1} > {kazanan.sayi}:
                        set {kazanan} to "1"
                        ser {kazanan.sayi} to {oy1}
            else if arg 1 is 2:
                add 1 to {oy2}
                if {kazanan} is not set:
                    set {kazanan} to "2"
                    set {kazanan.sayi} to {oy2}
                else:
                    if {oy2} > {kazanan.sayi}:
                        set {kazanan} to "2"
                        ser {kazanan.sayi} to {oy2}
            else if arg 1 is 3:
                add 1 to {oy3}
                if {kazanan} is not set:
                    set {kazanan} to "3"
                    set {kazanan.sayi} to {oy3}
                else:
                    if {oy3} > {kazanan.sayi}:
                        set {kazanan} to "3"
                        ser {kazanan.sayi} to {oy3}

on inventory close:
    if {oymenu.%player%} is set:
        cancel event
 
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