Paylaşım Oylama Skripti

Mr_Samed

Bakır madencisi.
Katılım
6 Şubat 2020
Mesajlar
156
Tepki puanı
18
Puanları
705
Yaş
26
Konum
İzmir
Dakikalar içinde aktif Minecraft sunucunu kur! Lag’sız, düşük pingli TR lokasyon ile kendi dünyanı oluştur, arkadaşlarınla oyna Hemen başla
Bu komut sayesinde sunucunuzda oylama yapabiliceksiniz
./oylama <konu> <3üre> komutunu kullanmanız yeterli.

oylama.png


Kod:
# OYLAMA

command /oylama [<text>] [<int>]:
    permission: op
    permission message: &3Minecraftturk  &7» &fBu komutu girmek için yetkiniz yok.
    trigger:
        if arg 1 is set:
            if arg 2 is set:
                set {oylama.sureci} to true
                send "&3Minecraftturk  &7» &e%arg 1%" to players
                send "&7Kabul etmek için &a/evet&7, reddetmek için ise &c/hayır &7yazın." to players
                send "&7Oylamanın bitmesine &e%arg 2% &7saniye kaldı." to players
                loop arg 2 times:
                    wait a second
                delete {oylama.sureci}
                send "&3Minecraftturk  &7» &eOylama sunuluyor!" to players
                wait 1 second
                if {evet} is not set:
                    send "&aEvet &7sayısı &8» &f0" to players
                else:
                    send "&aEvet &7sayısı &8» &f%{evet}%" to players
                if {hayir} is not set:
                    send "&cHayır &7sayısı &8» &f0" to players
                else:
                    send "&cHayır &7sayısı &8» &f%{hayir}%" to players
                delete {oykullandi::*}
                delete {evet}
                delete {hayir}
            else:
                send "&3Minecraftturk  &7» &7/oylama <konu> <süre>" to player
        else:
            send "&3Minecraftturk  &7» &7/oylama <konu> <süre>" to player
                
command /evet:
    trigger:
        if {oylama.sureci} is set:
            if {oykullandi::%player%} is not set:
                set {oykullandi::%player%} to 1
                add 1 to {evet}
                send "&3Minecraftturk  &7» &7Oyunuzu &aevet &7olarak kullandınız." to player
            else:
                send "&3Minecraftturk  &7» &7Oyunuzu zaten kullanmışsınız." to player
        else:
            send "&3Minecraftturk  &7» &7Yürürlükte bir oylama yok!" to player
            
command /hayır:
    aliases: hayir
    trigger:
        if {oylama.sureci} is set:
            if {oykullandi::%player%} is not set:
                set {oykullandi::%player%} to 1
                add 1 to {hayir}
                send "&3Minecraftturk  &7» &7Oyunuzu &chayır &7olarak kullandınız." to player
            else:
                send "&3Minecraftturk  &7» &7Oyunuzu zaten kullanmışsınız." to player
        else:
            send "&3Minecraftturk &7» &7Yürürlükte bir oylama yok!" to player
            
on skript load:
    delete {oykullandi::*}
    delete {evet}
    delete {hayir}
 

UmutTR

Seçkin madenci.
Katılım
27 Ekim 2019
Mesajlar
617
Tepki puanı
149
Puanları
1,205
Konum
İzmir
Web Sitesi
batihost.com
Dakikalar içinde aktif Minecraft sunucunu kur! Lag’sız, düşük pingli TR lokasyon ile kendi dünyanı oluştur, arkadaşlarınla oyna Hemen başla
Yararlı konu eline sağlık.
 

Üst