- En iyi cevaplar
- 3
Merhaba, bu skript bazı sunucularda işe yarayacağını düşünüyorum bu yüzden sizlere paylaşmak istedim.
Komutlar- /oylama başlat <yazı>
- /oylama iptal
- /evet
- /hayır
- oylama.admin
PHP:
on load:
set {oylamavar} to false
on join:
if {oylamavar} is true:
set {oyverdi.%player%} to true
command /oylama [<text>] [<text>]:
permission: oylama.admin
permission message: &4Yetkin yok
trigger:
arg 1 is not set:
send "/oylama başlat <yazi>" to player
send "/oylama iptal" to player
arg 1 is "iptal":
if {oylamavar} is true:
set {oylamavar} to false
send "======" to all players
send "&8-=-=[ &7Oylama &8]=-=-" to all players
send "&8[&b%player%&8] - &7Oylama iptal edildi!" to all players
send "======" to all players
else:
send "&cBir oylama bulunmamakta!" to player
arg 1 is "başlat":
arg 2 is set:
if {oylamavar} is false:
set {oylamavar} to true
loop all players:
set {oyverdi.%loop-player%} to true
send "======" to all players
send "&8-=-=[ &7Oylama &8]=-=-" to all players
send "&8[&b%player%&8] - &7%arg 2%" to all players
send "&7Katılak için &6/evet &7& &chayır" to all players
send "&c!: &730sn sonra oylama sonuçları açıklanacak." to all players
set {evet} to 0
set {hayir} to 0
send "======" to all players
wait 25 seconds
wait 3 seconds
send "&b&lOYLAMANIN ACIKLANMASINA SON &63 &7sn" to all players
wait 2 seconds
send "&b&lOYLAMANIN ACIKLANMASINA SON &62 &7sn" to all players
wait 1 seconds
send "&b&lOYLAMANIN ACIKLANMASINA SON &61 &7sn" to all players
if {oylamavar} is true:
if {evet} is bigger than {hayir}:
send "======" to all players
send "&8-=-=[ &7Oylama &8]=-=-" to all players
send "&aEvet: &6%{evet}%" to all players
send "&cHayir: &6%{hayir}%" to all players
send "&bSonuç: &6Oylama'da 'EVET' kazanmıştır." to all players
set {oylamavar} to false
send "======" to all players
else:
if {hayir} is bigger than {evet}:
send "======" to all players
send "&8-=-=[ &7Oylama &8]=-=-" to all players
send "&aEvet: &6%{evet}%" to all players
send "&cHayir: &6%{hayir}%" to all players
send "&bSonuç: &6Oylama'da 'HAYIR' kazanmıştır." to all players
set {oylamavar} to false
send "======" to all players
else:
if {evet} is {hayir}:
send "======" to all players
send "&8-=-=[ &7Oylama &8]=-=-" to all players
send "&aEvet: &6%{evet}%" to all players
send "&cHayir: &6%{hayir}%" to all players
send "&bSonuç: &6Oylama berabere." to all players
set {oylamavar} to false
send "======" to all players
stop
command /evet:
trigger:
if {oylamavar} is true:
if {oyverdi.%player%} is true:
add 1 to {evet}
send "&bBaşarıyla &aevet &boyu verdin." to player
set {oyverdi.%player%} to false
else:
send "&cZaten oy verdin." to player
else:
send "&cOylama yok." to player
command /hayır:
trigger:
if {oylamavar} is true:
if {oyverdi.%player%} is true:
add 1 to {hayir}
set {oyverdi.%player%} to false
send "&bBaşarıyla &chayır &boyu verdin." to player
else:
send "&cZaten oy verdin." to player
else:
send "&cOylama yok." to player
Son düzenleme: