kashiandwazaki
Bence bu şekilde olması çok mantıklı arkadaşın dediği gibi olursa oyuncuya oy verme zorunluluğu yüklenmiş olur buda can sıkıcı olabilir.Hocam benim yapabileceğim şu, oyuncu oylama menüsü gelir. İster menüyü kapatır, ister oy verir. Tekrar açmaz veya bir komut girer anca öyle geri menüyü açar.
Böyle isterseniz yapıp atayım?
Tabi, yapıp atarım.Bence bu şekilde olması çok mantıklı arkadaşın dediği gibi olursa oyuncuya oy verme zorunluluğu yüklenmiş olur buda can sıkıcı olabilir.
Paylaşabilirmisiniz anlattığınız şekilde ?
aynen, oyuncu bir komut ile menüyü açsın o menüden ankete cevap versinHocam benim yapabileceğim şu, oyuncu oylama menüsü gelir. İster menüyü kapatır, ister oy verir. Tekrar açmaz veya bir komut girer anca öyle geri menüyü açar.
Böyle isterseniz yapıp atayım?
variables:
{oylama} = false
options:
p: &6&lMenü Oylama &8»
command /moylama:
trigger:
if {oylama} is true:
open chest with 3 rows named "&6&lMenülü Oylama" to player
wait 1 tick
format slot 4 of player with paper named "&6&lSoru:" with lore "||&e%{soru}%" to close
format slot 10 of player with * Wool named "&a&lEvet" with lore "||&7Oyunuzu &a&lEvet &7olarak kullanırsınız" to close then run [execute player command "/mevet"]
format slot 16 of player with Red Wool named "&c&lHayır" with lore "||&7Oyunuzu &c&lHayır &7olarak kullanırsınız" to close then run [execute player command "/mhayir"]
else:
send players title "&eOylama" with subtitle "&fŞuan aktif bir Oylama yok!" for 3 seconds
command /maoylama [<text>] [<text>]:
permission: admin.moylama
permission message: &c{@p} &cYeterli yetkiniz yok!
trigger:
if player is a op:
if arg 1 is "başlat" or "baslat":
if {oylama} is false:
if {soru} is set:
set {oylama} to true
execute player command "moylama"
else:
send "{@p} &cSoruyu girmemişsiniz!" to player
else:
send "{@p} &cŞuan aktif bir Oylama mevcut!"
if arg 1 is "durdur":
broadcast " "
broadcast " &d&lOylama Sonucu"
broadcast " "
broadcast " &a&lEvet &8» &f%{mevet} otherwise 0%"
broadcast " &c&lHayır &8» &f%{mhayir} otherwise 0%"
broadcast " "
set {oylama} to false
delete {moyk::*}
delete {soru}
delete {mevet}
delete {mhayir}
if arg 1 is "soru":
if arg 2 is set:
if {oylama} is false:
set {soru} to arg 2
send "{@p} &aSoru &8""&f%{soru}%&8"" &aolarak güncellenmiştir."
else:
send "{@p} &cAktif bir oylama olduğu için soruyu değiştiremezsiniz!"
else:
send "{@p} &cSoruyu girmediniz!"
if arg 1 is not set:
send "&8&m--------------------&8[&6&lMenü Oylama&8]&8&m--------------------" to player
send " " to player
send " &7Merhaba, &ebaşlat/durdur/soru &7bunlardan birini yazmalısın." to player
send " &7Aşağıda komutları bakabilirsin." to player
send " " to player
send " &e/maoylama başlat &8» &7Oylamayı başlatırsın." to player
send " &e/maoylama durdur &8» &7Oylamayı durdurursun." to player
send " &e/maoylama soru (Oylama Sorusu) &8» &7Oylama Sorusu yazan yere, soruyu yazıcaksınız. Soruyu bu komut ile güncelliyeceksiniz!" to player
send " " to player
if executor is console:
if arg 1 is "başlat" or "baslat":
if {oylama} is false:
if {soru} is set:
set {oylama} to true
execute player command "moylama"
else:
send "{@p} &cSoruyu girmemişsiniz!" to player
else:
send "{@p} &cŞuan aktif bir Oylama mevcut!"
if arg 1 is "durdur":
broadcast " "
broadcast " &d&lOylama Sonucu"
broadcast " "
broadcast " &a&lEvet &8» &f%{mevet} otherwise 0%"
broadcast " &c&lHayır &8» &f%{mhayir} otherwise 0%"
broadcast " "
set {oylama} to false
delete {moyk::*}
delete {soru}
delete {mevet}
delete {mhayir}
if arg 1 is "soru":
if arg 2 is set:
if {oylama} is false:
set {soru} to arg 2
send "{@p} &aSoru &8""&f%{soru}%&8"" &aolarak güncellenmiştir."
else:
send "{@p} &cAktif bir oylama olduğu için soruyu değiştiremezsiniz!"
else:
send "{@p} &cSoruyu girmediniz!"
if arg 1 is not set:
send "&8&m--------------------&8[&6&lMenü Oylama&8]&8&m--------------------" to player
send " " to player
send " &7Merhaba, &ebaşlat/durdur/soru &7bunlardan birini yazmalısın." to player
send " &7Aşağıda komutları bakabilirsin." to player
send " " to player
send " &e/maoylama başlat &8» &7Oylamayı başlatırsın." to player
send " &e/maoylama durdur &8» &7Oylamayı durdurursun." to player
send " &e/maoylama soru (Oylama Sorusu) &8» &7Oylama Sorusu yazan yere, soruyu yazıcaksınız. Soruyu bu komut ile güncelliyeceksiniz!" to player
send " " to player
command /mevet:
trigger:
if {oylama} is true:
if {moyk::%player%} is not set:
send "{@p} &7Oyunuzu &a&lEvet &7olarak kullandınız."
add 1 to {mevet}
add 1 to {moyk::%player%}
else:
send "{@p} &7Oyunuzu kullanmışsınız."
else:
send players title "&eOylama" with subtitle "&fŞuan aktif bir Oylama yok!" for 3 seconds
command /mhayir:
trigger:
if {oylama} is true:
if {moyk::%player%} is not set:
send "{@p} &7Oyunuzu &c&lHayır &7olarak kullandınız."
add 1 to {mhayir}
add 1 to {moyk::%player%}
else:
send "{@p} &7Oyunuzu kullanmışsınız."
else:
send players title "&eOylama" with subtitle "&fŞuan aktif bir Oylama yok!" for 3 seconds
on inventory close:
if {oylama} is true:
if name of event-inventory is "&6&lMenülü Oylama":
if player has permission "admin.moylama":
stop
else:
wait 0.2 seconds
execute player command "moylama"
variables:
{oylama}=false
options:
p: &6&lMenü Oylama &8»
command /moylama:
trigger:
if {oylama} is true:
if {moyk::%player%} is not set:
open chest with 3 rows named "&6&lMenülü Oylama" to player
wait 1 tick
format slot 4 of player with paper named "&6&lSoru:" with lore "||&e%{soru}%" to close
format slot 10 of player with * Wool named "&a&lEvet" with lore "||&7Oyunuzu &a&lEvet &7olarak kullanırsınız" to close then run [execute player command "/mevet"]
format slot 16 of player with Red Wool named "&c&lHayır" with lore "||&7Oyunuzu &c&lHayır &7olarak kullanırsınız" to close then run [execute player command "/mhayir"]
else:
send "{@p} &7Oyunuzu kullanmışsınız."
else:
send players title "&eOylama" with subtitle "&fŞuan aktif bir Oylama yok!" for 3 seconds
command /maoylama [<text>] [<text>]:
permission: admin.moylama
permission message: &c{@p} &cYeterli yetkiniz yok!
trigger:
if arg 1 is "başlat" or "baslat":
if {oylama} is false:
if {soru} is set:
send players title "&eOylama" with subtitle "&c%player% &fOylama başlattı" for 3 seconds
broadcast "{@p} &c5 saniye &7sonra oylama menüsü açılacaktır!"
wait 5 seconds
set {oylama} to true
execute player command "moylama"
broadcast "{@p} &7Menüyü kapatsanız bile &e/moylama &7ile oylama menüsünü açabilirsiniz."
wait 1 minutes
broadcast " "
broadcast " &d&lOylama Sonucu"
broadcast " "
broadcast " &a&lEvet &8» &f%{mevet} otherwise 0%"
broadcast " &c&lHayır &8» &f%{mhayir} otherwise 0%"
broadcast " "
set {oylama} to false
delete {moyk::*}
delete {soru}
delete {mevet}
delete {mhayir}
else:
send "{@p} &cSoruyu girmemişsiniz!" to player
else:
send "{@p} &cŞuan aktif bir Oylama mevcut!"
if arg 1 is "soru":
if arg 2 is set:
set {soru} to arg 2
send "{@p} &aSoru &8""&f%{soru}%&8"" &aolarak güncellenmiştir."
else:
send "{@p} &cSoruyu girmediniz!"
if arg 1 is not set:
send "&8&m--------------------&8[&6&lMenü Oylama&8]&8&m--------------------" to player
send " " to player
send " &7Merhaba, &ebaşlat/soru &7bunlardan birini yazmalısın." to player
send " &7Aşağıda komutları bakabilirsin." to player
send " " to player
send " &e/maoylama başlat &8» &7Oylamayı başlatırsın." to player
send " &e/maoylama soru (Oylama Sorusu) &8» &7Oylama Sorusu yazan yere, soruyu yazıcaksınız. Soruyu bu komut ile güncelliyeceksiniz!" to player
send " " to player
command /mevet:
trigger:
if {oylama} is true:
if {moyk::%player%} is not set:
send "{@p} &7Oyunuzu &a&lEvet &7olarak kullandınız."
add 1 to {mevet}
add 1 to {moyk::%player%}
else:
send "{@p} &7Oyunuzu kullanmışsınız."
else:
send players title "&eOylama" with subtitle "&fŞuan aktif bir Oylama yok!" for 3 seconds
command /mhayir:
trigger:
if {oylama} is true:
if {moyk::%player%} is not set:
send "{@p} &7Oyunuzu &c&lHayır &7olarak kullandınız."
add 1 to {mhayir}
add 1 to {moyk::%player%}
else:
send "{@p} &7Oyunuzu kullanmışsınız."
else:
send players title "&eOylama" with subtitle "&fŞuan aktif bir Oylama yok!" for 3 seconds
variables:
{oylama}=false
options:
p: &6&lMenü Oylama &8»
command /moylama:
trigger:
if {oylama} is true:
open chest with 3 rows named "&6&lMenülü Oylama" to player
wait 1 tick
format slot 4 of player with paper named "&6&lSoru:" with lore "||&e%{soru}%" to close
format slot 10 of player with * Wool named "&a&lEvet" with lore "||&7Oyunuzu &a&lEvet &7olarak kullanırsınız" to close then run [execute player command "/mevet"]
format slot 16 of player with Red Wool named "&c&lHayır" with lore "||&7Oyunuzu &c&lHayır &7olarak kullanırsınız" to close then run [execute player command "/mhayir"]
else:
send players title "&eOylama" with subtitle "&fŞuan aktif bir Oylama yok!" for 3 seconds
command /maoylama [<text>] [<text>]:
permission: admin.moylama
permission message: &c{@p} &cYeterli yetkiniz yok!
trigger:
if arg 1 is "başlat" or "baslat":
if {oylama} is false:
if {soru} is set:
send players title "&eOylama" with subtitle "&c%player% &fOylama başlattı" for 3 seconds
broadcast "{@p} &c5 saniye &7sonra oylama menüsü açılacaktır!"
wait 5 seconds
set {oylama} to true
execute player command "moylama"
wait 15 seconds
broadcast " "
broadcast " &d&lOylama Sonucu"
broadcast " "
broadcast " &a&lEvet &8» &f%{mevet} otherwise 0%"
broadcast " &c&lHayır &8» &f%{mhayir} otherwise 0%"
broadcast " "
set {oylama} to false
delete {moyk::*}
delete {soru}
delete {mevet}
delete {mhayir}
else:
send "{@p} &cSoruyu girmemişsiniz!" to player
else:
send "{@p} &cŞuan aktif bir Oylama mevcut!"
if arg 1 is "soru":
if arg 2 is set:
set {soru} to arg 2
send "{@p} &aSoru &8""&f%{soru}%&8"" &aolarak güncellenmiştir."
else:
send "{@p} &cSoruyu girmediniz!"
if arg 1 is not set:
send "&8&m--------------------&8[&6&lMenü Oylama&8]&8&m--------------------" to player
send " " to player
send " &7Merhaba, &ebaşlat/soru &7bunlardan birini yazmalısın." to player
send " &7Aşağıda komutları bakabilirsin." to player
send " " to player
send " &e/maoylama başlat &8» &7Oylamayı başlatırsın." to player
send " &e/maoylama soru (Oylama Sorusu) &8» &7Oylama Sorusu yazan yere, soruyu yazıcaksınız. Soruyu bu komut ile güncelliyeceksiniz!" to player
send " " to player
command /mevet:
trigger:
if {oylama} is true:
if {moyk::%player%} is not set:
send "{@p} &7Oyunuzu &a&lEvet &7olarak kullandınız."
add 1 to {mevet}
add 1 to {moyk::%player%}
else:
send "{@p} &7Oyunuzu kullanmışsınız."
else:
send players title "&eOylama" with subtitle "&fŞuan aktif bir Oylama yok!" for 3 seconds
command /mhayir:
trigger:
if {oylama} is true:
if {moyk::%player%} is not set:
send "{@p} &7Oyunuzu &c&lHayır &7olarak kullandınız."
add 1 to {mhayir}
add 1 to {moyk::%player%}
else:
send "{@p} &7Oyunuzu kullanmışsınız."
else:
send players title "&eOylama" with subtitle "&fŞuan aktif bir Oylama yok!" for 3 seconds
on inventory close:
if {oylama} is true:
if name of event-inventory is "&6&lMenülü Oylama":
wait 0.2 seconds
execute player command "moylama"
sanırım benim istediğim de - Oy kullanmak zorunda değil olan, çünkü zorunlu olmayacak ve oyuncu istediği zaman oy verebilecek, uğraştırdığım için üzgünüm :( Teşekkürler!Öncelikle bu skript ile baya uğraştım. Sizin dediğinizi yapamam sandım ama bi arkadaştan mantığını öğrendim ve yaptım. Mesajımı beğenirseniz sevinirim.
Konuyu açan arkadaşın istediği;
Sizde habire menü çıkmaması için "admin.moylama" yetkisi veya op unuz olması gerekiyor.
Kod:variables: {oylama} = false options: p: &6&lMenü Oylama &8» command /moylama: trigger: if {oylama} is true: open chest with 3 rows named "&6&lMenülü Oylama" to player wait 1 tick format slot 4 of player with paper named "&6&lSoru:" with lore "||&e%{soru}%" to close format slot 10 of player with * Wool named "&a&lEvet" with lore "||&7Oyunuzu &a&lEvet &7olarak kullanırsınız" to close then run [execute player command "/mevet"] format slot 16 of player with Red Wool named "&c&lHayır" with lore "||&7Oyunuzu &c&lHayır &7olarak kullanırsınız" to close then run [execute player command "/mhayir"] else: send players title "&eOylama" with subtitle "&fŞuan aktif bir Oylama yok!" for 3 seconds command /maoylama [<text>] [<text>]: permission: admin.moylama permission message: &c{@p} &cYeterli yetkiniz yok! trigger: if player is a op: if arg 1 is "başlat" or "baslat": if {oylama} is false: if {soru} is set: set {oylama} to true execute player command "moylama" else: send "{@p} &cSoruyu girmemişsiniz!" to player else: send "{@p} &cŞuan aktif bir Oylama mevcut!" if arg 1 is "durdur": broadcast " " broadcast " &d&lOylama Sonucu" broadcast " " broadcast " &a&lEvet &8» &f%{mevet} otherwise 0%" broadcast " &c&lHayır &8» &f%{mhayir} otherwise 0%" broadcast " " set {oylama} to false delete {moyk::*} delete {soru} delete {mevet} delete {mhayir} if arg 1 is "soru": if arg 2 is set: if {oylama} is false: set {soru} to arg 2 send "{@p} &aSoru &8""&f%{soru}%&8"" &aolarak güncellenmiştir." else: send "{@p} &cAktif bir oylama olduğu için soruyu değiştiremezsiniz!" else: send "{@p} &cSoruyu girmediniz!" if arg 1 is not set: send "&8&m--------------------&8[&6&lMenü Oylama&8]&8&m--------------------" to player send " " to player send " &7Merhaba, &ebaşlat/durdur/soru &7bunlardan birini yazmalısın." to player send " &7Aşağıda komutları bakabilirsin." to player send " " to player send " &e/maoylama başlat &8» &7Oylamayı başlatırsın." to player send " &e/maoylama durdur &8» &7Oylamayı durdurursun." to player send " &e/maoylama soru (Oylama Sorusu) &8» &7Oylama Sorusu yazan yere, soruyu yazıcaksınız. Soruyu bu komut ile güncelliyeceksiniz!" to player send " " to player if executor is console: if arg 1 is "başlat" or "baslat": if {oylama} is false: if {soru} is set: set {oylama} to true execute player command "moylama" else: send "{@p} &cSoruyu girmemişsiniz!" to player else: send "{@p} &cŞuan aktif bir Oylama mevcut!" if arg 1 is "durdur": broadcast " " broadcast " &d&lOylama Sonucu" broadcast " " broadcast " &a&lEvet &8» &f%{mevet} otherwise 0%" broadcast " &c&lHayır &8» &f%{mhayir} otherwise 0%" broadcast " " set {oylama} to false delete {moyk::*} delete {soru} delete {mevet} delete {mhayir} if arg 1 is "soru": if arg 2 is set: if {oylama} is false: set {soru} to arg 2 send "{@p} &aSoru &8""&f%{soru}%&8"" &aolarak güncellenmiştir." else: send "{@p} &cAktif bir oylama olduğu için soruyu değiştiremezsiniz!" else: send "{@p} &cSoruyu girmediniz!" if arg 1 is not set: send "&8&m--------------------&8[&6&lMenü Oylama&8]&8&m--------------------" to player send " " to player send " &7Merhaba, &ebaşlat/durdur/soru &7bunlardan birini yazmalısın." to player send " &7Aşağıda komutları bakabilirsin." to player send " " to player send " &e/maoylama başlat &8» &7Oylamayı başlatırsın." to player send " &e/maoylama durdur &8» &7Oylamayı durdurursun." to player send " &e/maoylama soru (Oylama Sorusu) &8» &7Oylama Sorusu yazan yere, soruyu yazıcaksınız. Soruyu bu komut ile güncelliyeceksiniz!" to player send " " to player command /mevet: trigger: if {oylama} is true: if {moyk::%player%} is not set: send "{@p} &7Oyunuzu &a&lEvet &7olarak kullandınız." add 1 to {mevet} add 1 to {moyk::%player%} else: send "{@p} &7Oyunuzu kullanmışsınız." else: send players title "&eOylama" with subtitle "&fŞuan aktif bir Oylama yok!" for 3 seconds command /mhayir: trigger: if {oylama} is true: if {moyk::%player%} is not set: send "{@p} &7Oyunuzu &c&lHayır &7olarak kullandınız." add 1 to {mhayir} add 1 to {moyk::%player%} else: send "{@p} &7Oyunuzu kullanmışsınız." else: send players title "&eOylama" with subtitle "&fŞuan aktif bir Oylama yok!" for 3 seconds on inventory close: if {oylama} is true: if name of event-inventory is "&6&lMenülü Oylama": if player has permission "admin.moylama": stop else: wait 0.2 seconds execute player command "moylama"
Buyrun @Rahmican istediğin gibi
Kod:variables: {oylama}=false options: p: &6&lMenü Oylama &8» command /moylama: trigger: if {oylama} is true: if {moyk::%player%} is not set: open chest with 3 rows named "&6&lMenülü Oylama" to player wait 1 tick format slot 4 of player with paper named "&6&lSoru:" with lore "||&e%{soru}%" to close format slot 10 of player with * Wool named "&a&lEvet" with lore "||&7Oyunuzu &a&lEvet &7olarak kullanırsınız" to close then run [execute player command "/mevet"] format slot 16 of player with Red Wool named "&c&lHayır" with lore "||&7Oyunuzu &c&lHayır &7olarak kullanırsınız" to close then run [execute player command "/mhayir"] else: send "{@p} &7Oyunuzu kullanmışsınız." else: send players title "&eOylama" with subtitle "&fŞuan aktif bir Oylama yok!" for 3 seconds command /maoylama [<text>] [<text>]: permission: admin.moylama permission message: &c{@p} &cYeterli yetkiniz yok! trigger: if arg 1 is "başlat" or "baslat": if {oylama} is false: if {soru} is set: send players title "&eOylama" with subtitle "&c%player% &fOylama başlattı" for 3 seconds broadcast "{@p} &c5 saniye &7sonra oylama menüsü açılacaktır!" wait 5 seconds set {oylama} to true execute player command "moylama" broadcast "{@p} &7Menüyü kapatsanız bile &e/moylama &7ile oylama menüsünü açabilirsiniz." wait 1 minutes broadcast " " broadcast " &d&lOylama Sonucu" broadcast " " broadcast " &a&lEvet &8» &f%{mevet} otherwise 0%" broadcast " &c&lHayır &8» &f%{mhayir} otherwise 0%" broadcast " " set {oylama} to false delete {moyk::*} delete {soru} delete {mevet} delete {mhayir} else: send "{@p} &cSoruyu girmemişsiniz!" to player else: send "{@p} &cŞuan aktif bir Oylama mevcut!" if arg 1 is "soru": if arg 2 is set: set {soru} to arg 2 send "{@p} &aSoru &8""&f%{soru}%&8"" &aolarak güncellenmiştir." else: send "{@p} &cSoruyu girmediniz!" if arg 1 is not set: send "&8&m--------------------&8[&6&lMenü Oylama&8]&8&m--------------------" to player send " " to player send " &7Merhaba, &ebaşlat/durdur/soru &7bunlardan birini yazmalısın." to player send " &7Aşağıda komutları bakabilirsin." to player send " " to player send " &e/maoylama başlat (Süre) &8» &7Oylamayı başlatırsın." to player send " &e/maoylama soru (Oylama Sorusu) &8» &7Oylama Sorusu yazan yere, soruyu yazıcaksınız. Soruyu bu komut ile güncelliyeceksiniz!" to player send " " to player command /mevet: trigger: if {oylama} is true: if {moyk::%player%} is not set: send "{@p} &7Oyunuzu &a&lEvet &7olarak kullandınız." add 1 to {mevet} add 1 to {moyk::%player%} else: send "{@p} &7Oyunuzu kullanmışsınız." else: send players title "&eOylama" with subtitle "&fŞuan aktif bir Oylama yok!" for 3 seconds command /mhayir: trigger: if {oylama} is true: if {moyk::%player%} is not set: send "{@p} &7Oyunuzu &c&lHayır &7olarak kullandınız." add 1 to {mhayir} add 1 to {moyk::%player%} else: send "{@p} &7Oyunuzu kullanmışsınız." else: send players title "&eOylama" with subtitle "&fŞuan aktif bir Oylama yok!" for 3 seconds
Kod:variables: {oylama}=false options: p: &6&lMenü Oylama &8» command /moylama: trigger: if {oylama} is true: open chest with 3 rows named "&6&lMenülü Oylama" to player wait 1 tick format slot 4 of player with paper named "&6&lSoru:" with lore "||&e%{soru}%" to close format slot 10 of player with * Wool named "&a&lEvet" with lore "||&7Oyunuzu &a&lEvet &7olarak kullanırsınız" to close then run [execute player command "/mevet"] format slot 16 of player with Red Wool named "&c&lHayır" with lore "||&7Oyunuzu &c&lHayır &7olarak kullanırsınız" to close then run [execute player command "/mhayir"] else: send players title "&eOylama" with subtitle "&fŞuan aktif bir Oylama yok!" for 3 seconds command /maoylama [<text>] [<text>]: permission: admin.moylama permission message: &c{@p} &cYeterli yetkiniz yok! trigger: if arg 1 is "başlat" or "baslat": if {oylama} is false: if {soru} is set: send players title "&eOylama" with subtitle "&c%player% &fOylama başlattı" for 3 seconds broadcast "{@p} &c5 saniye &7sonra oylama menüsü açılacaktır!" wait 5 seconds set {oylama} to true execute player command "moylama" wait 15 seconds broadcast " " broadcast " &d&lOylama Sonucu" broadcast " " broadcast " &a&lEvet &8» &f%{mevet} otherwise 0%" broadcast " &c&lHayır &8» &f%{mhayir} otherwise 0%" broadcast " " set {oylama} to false delete {moyk::*} delete {soru} delete {mevet} delete {mhayir} else: send "{@p} &cSoruyu girmemişsiniz!" to player else: send "{@p} &cŞuan aktif bir Oylama mevcut!" if arg 1 is "soru": if arg 2 is set: set {soru} to arg 2 send "{@p} &aSoru &8""&f%{soru}%&8"" &aolarak güncellenmiştir." else: send "{@p} &cSoruyu girmediniz!" if arg 1 is not set: send "&8&m--------------------&8[&6&lMenü Oylama&8]&8&m--------------------" to player send " " to player send " &7Merhaba, &ebaşlat/durdur/soru &7bunlardan birini yazmalısın." to player send " &7Aşağıda komutları bakabilirsin." to player send " " to player send " &e/maoylama başlat (Süre) &8» &7Oylamayı başlatırsın." to player send " &e/maoylama soru (Oylama Sorusu) &8» &7Oylama Sorusu yazan yere, soruyu yazıcaksınız. Soruyu bu komut ile güncelliyeceksiniz!" to player send " " to player command /mevet: trigger: if {oylama} is true: if {moyk::%player%} is not set: send "{@p} &7Oyunuzu &a&lEvet &7olarak kullandınız." add 1 to {mevet} add 1 to {moyk::%player%} else: send "{@p} &7Oyunuzu kullanmışsınız." else: send players title "&eOylama" with subtitle "&fŞuan aktif bir Oylama yok!" for 3 seconds command /mhayir: trigger: if {oylama} is true: if {moyk::%player%} is not set: send "{@p} &7Oyunuzu &c&lHayır &7olarak kullandınız." add 1 to {mhayir} add 1 to {moyk::%player%} else: send "{@p} &7Oyunuzu kullanmışsınız." else: send players title "&eOylama" with subtitle "&fŞuan aktif bir Oylama yok!" for 3 seconds on inventory close: if {oylama} is true: if name of event-inventory is "&6&lMenülü Oylama": wait 0.2 seconds execute player command "moylama"
kashiandwazaki
Teşekkürler bence oylama skript'lerine böyle gui'li bir sistem lazımdı.Öncelikle bu skript ile baya uğraştım. Sizin dediğinizi yapamam sandım ama bi arkadaştan mantığını öğrendim ve yaptım. Mesajımı beğenirseniz sevinirim.
Konuyu açan arkadaşın istediği;
Sizde habire menü çıkmaması için "admin.moylama" yetkisi veya op unuz olması gerekiyor.
Kod:variables: {oylama} = false options: p: &6&lMenü Oylama &8» command /moylama: trigger: if {oylama} is true: open chest with 3 rows named "&6&lMenülü Oylama" to player wait 1 tick format slot 4 of player with paper named "&6&lSoru:" with lore "||&e%{soru}%" to close format slot 10 of player with * Wool named "&a&lEvet" with lore "||&7Oyunuzu &a&lEvet &7olarak kullanırsınız" to close then run [execute player command "/mevet"] format slot 16 of player with Red Wool named "&c&lHayır" with lore "||&7Oyunuzu &c&lHayır &7olarak kullanırsınız" to close then run [execute player command "/mhayir"] else: send players title "&eOylama" with subtitle "&fŞuan aktif bir Oylama yok!" for 3 seconds command /maoylama [<text>] [<text>]: permission: admin.moylama permission message: &c{@p} &cYeterli yetkiniz yok! trigger: if player is a op: if arg 1 is "başlat" or "baslat": if {oylama} is false: if {soru} is set: set {oylama} to true execute player command "moylama" else: send "{@p} &cSoruyu girmemişsiniz!" to player else: send "{@p} &cŞuan aktif bir Oylama mevcut!" if arg 1 is "durdur": broadcast " " broadcast " &d&lOylama Sonucu" broadcast " " broadcast " &a&lEvet &8» &f%{mevet} otherwise 0%" broadcast " &c&lHayır &8» &f%{mhayir} otherwise 0%" broadcast " " set {oylama} to false delete {moyk::*} delete {soru} delete {mevet} delete {mhayir} if arg 1 is "soru": if arg 2 is set: if {oylama} is false: set {soru} to arg 2 send "{@p} &aSoru &8""&f%{soru}%&8"" &aolarak güncellenmiştir." else: send "{@p} &cAktif bir oylama olduğu için soruyu değiştiremezsiniz!" else: send "{@p} &cSoruyu girmediniz!" if arg 1 is not set: send "&8&m--------------------&8[&6&lMenü Oylama&8]&8&m--------------------" to player send " " to player send " &7Merhaba, &ebaşlat/durdur/soru &7bunlardan birini yazmalısın." to player send " &7Aşağıda komutları bakabilirsin." to player send " " to player send " &e/maoylama başlat &8» &7Oylamayı başlatırsın." to player send " &e/maoylama durdur &8» &7Oylamayı durdurursun." to player send " &e/maoylama soru (Oylama Sorusu) &8» &7Oylama Sorusu yazan yere, soruyu yazıcaksınız. Soruyu bu komut ile güncelliyeceksiniz!" to player send " " to player if executor is console: if arg 1 is "başlat" or "baslat": if {oylama} is false: if {soru} is set: set {oylama} to true execute player command "moylama" else: send "{@p} &cSoruyu girmemişsiniz!" to player else: send "{@p} &cŞuan aktif bir Oylama mevcut!" if arg 1 is "durdur": broadcast " " broadcast " &d&lOylama Sonucu" broadcast " " broadcast " &a&lEvet &8» &f%{mevet} otherwise 0%" broadcast " &c&lHayır &8» &f%{mhayir} otherwise 0%" broadcast " " set {oylama} to false delete {moyk::*} delete {soru} delete {mevet} delete {mhayir} if arg 1 is "soru": if arg 2 is set: if {oylama} is false: set {soru} to arg 2 send "{@p} &aSoru &8""&f%{soru}%&8"" &aolarak güncellenmiştir." else: send "{@p} &cAktif bir oylama olduğu için soruyu değiştiremezsiniz!" else: send "{@p} &cSoruyu girmediniz!" if arg 1 is not set: send "&8&m--------------------&8[&6&lMenü Oylama&8]&8&m--------------------" to player send " " to player send " &7Merhaba, &ebaşlat/durdur/soru &7bunlardan birini yazmalısın." to player send " &7Aşağıda komutları bakabilirsin." to player send " " to player send " &e/maoylama başlat &8» &7Oylamayı başlatırsın." to player send " &e/maoylama durdur &8» &7Oylamayı durdurursun." to player send " &e/maoylama soru (Oylama Sorusu) &8» &7Oylama Sorusu yazan yere, soruyu yazıcaksınız. Soruyu bu komut ile güncelliyeceksiniz!" to player send " " to player command /mevet: trigger: if {oylama} is true: if {moyk::%player%} is not set: send "{@p} &7Oyunuzu &a&lEvet &7olarak kullandınız." add 1 to {mevet} add 1 to {moyk::%player%} else: send "{@p} &7Oyunuzu kullanmışsınız." else: send players title "&eOylama" with subtitle "&fŞuan aktif bir Oylama yok!" for 3 seconds command /mhayir: trigger: if {oylama} is true: if {moyk::%player%} is not set: send "{@p} &7Oyunuzu &c&lHayır &7olarak kullandınız." add 1 to {mhayir} add 1 to {moyk::%player%} else: send "{@p} &7Oyunuzu kullanmışsınız." else: send players title "&eOylama" with subtitle "&fŞuan aktif bir Oylama yok!" for 3 seconds on inventory close: if {oylama} is true: if name of event-inventory is "&6&lMenülü Oylama": if player has permission "admin.moylama": stop else: wait 0.2 seconds execute player command "moylama"
Buyrun @Rahmican istediğin gibi
Kod:variables: {oylama}=false options: p: &6&lMenü Oylama &8» command /moylama: trigger: if {oylama} is true: if {moyk::%player%} is not set: open chest with 3 rows named "&6&lMenülü Oylama" to player wait 1 tick format slot 4 of player with paper named "&6&lSoru:" with lore "||&e%{soru}%" to close format slot 10 of player with * Wool named "&a&lEvet" with lore "||&7Oyunuzu &a&lEvet &7olarak kullanırsınız" to close then run [execute player command "/mevet"] format slot 16 of player with Red Wool named "&c&lHayır" with lore "||&7Oyunuzu &c&lHayır &7olarak kullanırsınız" to close then run [execute player command "/mhayir"] else: send "{@p} &7Oyunuzu kullanmışsınız." else: send players title "&eOylama" with subtitle "&fŞuan aktif bir Oylama yok!" for 3 seconds command /maoylama [<text>] [<text>]: permission: admin.moylama permission message: &c{@p} &cYeterli yetkiniz yok! trigger: if arg 1 is "başlat" or "baslat": if {oylama} is false: if {soru} is set: send players title "&eOylama" with subtitle "&c%player% &fOylama başlattı" for 3 seconds broadcast "{@p} &c5 saniye &7sonra oylama menüsü açılacaktır!" wait 5 seconds set {oylama} to true execute player command "moylama" broadcast "{@p} &7Menüyü kapatsanız bile &e/moylama &7ile oylama menüsünü açabilirsiniz." wait 1 minutes broadcast " " broadcast " &d&lOylama Sonucu" broadcast " " broadcast " &a&lEvet &8» &f%{mevet} otherwise 0%" broadcast " &c&lHayır &8» &f%{mhayir} otherwise 0%" broadcast " " set {oylama} to false delete {moyk::*} delete {soru} delete {mevet} delete {mhayir} else: send "{@p} &cSoruyu girmemişsiniz!" to player else: send "{@p} &cŞuan aktif bir Oylama mevcut!" if arg 1 is "soru": if arg 2 is set: set {soru} to arg 2 send "{@p} &aSoru &8""&f%{soru}%&8"" &aolarak güncellenmiştir." else: send "{@p} &cSoruyu girmediniz!" if arg 1 is not set: send "&8&m--------------------&8[&6&lMenü Oylama&8]&8&m--------------------" to player send " " to player send " &7Merhaba, &ebaşlat/durdur/soru &7bunlardan birini yazmalısın." to player send " &7Aşağıda komutları bakabilirsin." to player send " " to player send " &e/maoylama başlat (Süre) &8» &7Oylamayı başlatırsın." to player send " &e/maoylama soru (Oylama Sorusu) &8» &7Oylama Sorusu yazan yere, soruyu yazıcaksınız. Soruyu bu komut ile güncelliyeceksiniz!" to player send " " to player command /mevet: trigger: if {oylama} is true: if {moyk::%player%} is not set: send "{@p} &7Oyunuzu &a&lEvet &7olarak kullandınız." add 1 to {mevet} add 1 to {moyk::%player%} else: send "{@p} &7Oyunuzu kullanmışsınız." else: send players title "&eOylama" with subtitle "&fŞuan aktif bir Oylama yok!" for 3 seconds command /mhayir: trigger: if {oylama} is true: if {moyk::%player%} is not set: send "{@p} &7Oyunuzu &c&lHayır &7olarak kullandınız." add 1 to {mhayir} add 1 to {moyk::%player%} else: send "{@p} &7Oyunuzu kullanmışsınız." else: send players title "&eOylama" with subtitle "&fŞuan aktif bir Oylama yok!" for 3 seconds
Kod:variables: {oylama}=false options: p: &6&lMenü Oylama &8» command /moylama: trigger: if {oylama} is true: open chest with 3 rows named "&6&lMenülü Oylama" to player wait 1 tick format slot 4 of player with paper named "&6&lSoru:" with lore "||&e%{soru}%" to close format slot 10 of player with * Wool named "&a&lEvet" with lore "||&7Oyunuzu &a&lEvet &7olarak kullanırsınız" to close then run [execute player command "/mevet"] format slot 16 of player with Red Wool named "&c&lHayır" with lore "||&7Oyunuzu &c&lHayır &7olarak kullanırsınız" to close then run [execute player command "/mhayir"] else: send players title "&eOylama" with subtitle "&fŞuan aktif bir Oylama yok!" for 3 seconds command /maoylama [<text>] [<text>]: permission: admin.moylama permission message: &c{@p} &cYeterli yetkiniz yok! trigger: if arg 1 is "başlat" or "baslat": if {oylama} is false: if {soru} is set: send players title "&eOylama" with subtitle "&c%player% &fOylama başlattı" for 3 seconds broadcast "{@p} &c5 saniye &7sonra oylama menüsü açılacaktır!" wait 5 seconds set {oylama} to true execute player command "moylama" wait 15 seconds broadcast " " broadcast " &d&lOylama Sonucu" broadcast " " broadcast " &a&lEvet &8» &f%{mevet} otherwise 0%" broadcast " &c&lHayır &8» &f%{mhayir} otherwise 0%" broadcast " " set {oylama} to false delete {moyk::*} delete {soru} delete {mevet} delete {mhayir} else: send "{@p} &cSoruyu girmemişsiniz!" to player else: send "{@p} &cŞuan aktif bir Oylama mevcut!" if arg 1 is "soru": if arg 2 is set: set {soru} to arg 2 send "{@p} &aSoru &8""&f%{soru}%&8"" &aolarak güncellenmiştir." else: send "{@p} &cSoruyu girmediniz!" if arg 1 is not set: send "&8&m--------------------&8[&6&lMenü Oylama&8]&8&m--------------------" to player send " " to player send " &7Merhaba, &ebaşlat/durdur/soru &7bunlardan birini yazmalısın." to player send " &7Aşağıda komutları bakabilirsin." to player send " " to player send " &e/maoylama başlat (Süre) &8» &7Oylamayı başlatırsın." to player send " &e/maoylama soru (Oylama Sorusu) &8» &7Oylama Sorusu yazan yere, soruyu yazıcaksınız. Soruyu bu komut ile güncelliyeceksiniz!" to player send " " to player command /mevet: trigger: if {oylama} is true: if {moyk::%player%} is not set: send "{@p} &7Oyunuzu &a&lEvet &7olarak kullandınız." add 1 to {mevet} add 1 to {moyk::%player%} else: send "{@p} &7Oyunuzu kullanmışsınız." else: send players title "&eOylama" with subtitle "&fŞuan aktif bir Oylama yok!" for 3 seconds command /mhayir: trigger: if {oylama} is true: if {moyk::%player%} is not set: send "{@p} &7Oyunuzu &c&lHayır &7olarak kullandınız." add 1 to {mhayir} add 1 to {moyk::%player%} else: send "{@p} &7Oyunuzu kullanmışsınız." else: send players title "&eOylama" with subtitle "&fŞuan aktif bir Oylama yok!" for 3 seconds on inventory close: if {oylama} is true: if name of event-inventory is "&6&lMenülü Oylama": wait 0.2 seconds execute player command "moylama"
Hocam ilk başta deseydiniz. Artık uğraşamam o kadar.sanırım benim istediğim de - Oy kullanmak zorunda değil olan, çünkü zorunlu olmayacak ve oyuncu istediği zaman oy verebilecek, uğraştırdığım için üzgünüm :( Teşekkürler!
Gönderi otomatik olarak birleştirildi:
Aslında anlattığımı yapmışsın ama bunu şu şekilde yapabilir misin pek uğraştırmayacaksa
Bir sonraki oyun modu ne olsun?
Faction - Survival - OpSkyblock
/oyla ile menü açılsın isteyen istediğine 1 kerelik tıklayabilsin, mümkün mü? @DwordGG
Rica ederim.Teşekkürler bence oylama skript'lerine böyle gui'li bir sistem lazımdı.
Olursa söylesinler :D Güncelliyim :D@DwordGG skriptinde skquery menüsü kullanmışsın buda buglara sebep olucak
Büyük bir topluluğun parçası ol, etkinliklere katıl ve özel hediyeler kazanma şansı yakala!