#Hazirlayan Aslan.Kadi
options:
P: &6Oylama &8|
command /oyla <integer> <text>:
permission: skript.op
usage: &b/oyla &3<&bSure&3> <&bKonu&3>
trigger:
set {yes} to 0
set {no} to 0
loop all players:
set {oyla.%loop-player%} to false
broadcast "{@P} &c%player% &8adli oyuncu oylama baslatti"
broadcast "&6[&eSoru&6]: &6%arg-2%"
broadcast "{@P} &7Kabul etmek icin,&a/evet&7,reddetmek icin &c/hayır &7yazınız."
broadcast "&3[&bZaman&3] &7Oylamanin bitmesine kalan sure &2%arg-1%&7 saniye"
set {OylamaBitis} to true
loop arg-1 times:
wait 1 second
broadcast "{@P} &6Oylama tamamlandi"
broadcast "{@P} &aEvet&7 sayısı &6%{yes}%"
broadcast "{@P} &cHayır&7 sayısı &6%{no}%"
set {OylamaBitis} to false
command /evet:
trigger:
if {OylamaBitis} is true:
if {oyla.%player%} is false:
add 1 to {yes}
message "{@P} &3Oyunuzu basariyla kullandiniz"
set {oyla.%player%} to true
else:
message "{@P} &cZaten oyunuzu kullanmissiniz."
else:
message "{@P} &cSuanda yururlukte olan bir oylama yok"
command /hayır:
trigger:
if {OylamaBitis} is true:
if {oyla.%player%} is false:
add 1 to {no}
message "{@P} &3Oyunuzu basariyla kullandiniz"
set {oyla.%player%} to true
else:
message "{@P} &cZaten oyunuzu kullanmissiniz."
else:
message "{@P} &cSuanda yururlukte olan bir oylama yok"