Herkese merhaba!
Bugün kendi kodlamam olan çekiliş skriptini sizlere paylaşacağım.
Çalışması için gereken eklentiler:
- Skript_2.2-dev36
- TuSKe
Komutlar:
- /çekiliş <ödül>
İzinler:
- cekilis.admin
Görüntüler:
Kod:
Bugün kendi kodlamam olan çekiliş skriptini sizlere paylaşacağım.
Çalışması için gereken eklentiler:
- Skript_2.2-dev36
- TuSKe
Komutlar:
- /çekiliş <ödül>
İzinler:
- cekilis.admin
Görüntüler:
Kod:
Kod:
# CobbraGiveaway
# SilentCobbra tarafından kodlandı.
options:
Prefix: &6&l➤
Çekiliş Açıklanma Süresi: 20 #Saniye cinsinden yazınız - 20 saniye ve üzeri önerilir.
command /çekiliş [<text>]:
permission: cekilis.admin
trigger:
if arg 1 isn't set:
send "{@Prefix} &7Bir ödül belirtmelisiniz." to player
stop
cekilisBaslat(arg 1)
function cekilisBaslat(prize: text):
play raw sound "note.pling" at players with pitch 13 volume 10
open virtual chest with size 3 named "&6Çekiliş Yapılıyor!" to players
make gui slot 12 of players with light green wool named "&aKatıl" to run:
close player's inventory
add player to {cekilis::*}
send player title "&2❉" with subtitle "&aÇekilişe Katıldın!" for 3 seconds
play "LEVEL_UP" to player at volume 10
make gui slot 13 of players with ender chest named "&6Ödül: &e%{_prize}%"
make gui slot 14 of players with red wool named "&cKatılma" to run:
close player's inventory
send player title "&4✖" with subtitle "&cÇekilişe Katılmadın.." for 2 seconds
play "NOTE_BASS" to player at volume 10
make gui slot 0 and 1 and 2 and 3 and 4 and 5 and 6 and 7 and 8 and 9 and 10 and 11 and 15 and 16 and 17 and 18 and 19 and 20 and 21 and 22 and 23 and 24 and 25 and 26 of players with black glass pane
wait 5 second
cekilisCek("%{_prize}%")
function cekilisCek(prize: text):
wait {@Çekiliş Açıklanma Süresi} second
if {cekilis::*} isn't set:
broadcast "{@Prefix} &7Çekilişe kimse katılmadığı çekiliş için iptal edildi."
stop
set {_x} to 5
while {_x} isn't 0:
send {cekilis::*} title "&6Çekiliş Açıklanıyor.." with subtitle "&e%{_x}%" for 1 second
play raw sound "random.orb" at {cekilis::*} with pitch 1 volume 10
remove 1 from {_x}
wait 1 second
set {_z} to random element of {cekilis::*}
wait 2 second
send {cekilis::*} title "&5%{_z}%" with subtitle "&dÇekilişi Kazandın, Tebrikler!" for 3 second
send "{@Prefix} &a%{_z}%&7, &e%amount of {cekilis::*}% &7kişi arasından &d%{_prize}% &7çekilişini kazandı." to {cekilis::*}
play raw sound "random.levelup" at {cekilis::*} with pitch 13 volume 10
delete {cekilis::*}
Son düzenleme: