Merhaba, Sunucum İçin Çakma Lobi Yapıyorum. 30 Saniye Ayarlı Xp Barında Geri Sayım Yaparmısınız? Bir Tane Buldum Ama Çalışmadı.
PHP:
on skript enable:
if file "plugins/GeriSayim/ayarlar.yml" doesn't exists:
create file "plugins/GeriSayim/ayarlar.yml"
set "Geri_Sayim_Suresi" to "30" in yml file "plugins/GeriSayim/ayarlar.yml"
set "Ses_Efekti_Olsun_mu" to "true" in yml file "plugins/GeriSayim/ayarlar.yml"
set "Ses_Efekti" to "NOTE_PLING" in yml file "plugins/GeriSayim/ayarlar.yml"
set "Gerekli_Oyuncu_Sayisi" to "20" in yml file "plugins/GeriSayim/ayarlar.yml"
log "[Geri Sayim]Eklenti kuruldu!"
stop
else:
log "[Geri Sayim] Eklenti aktif!"
stop
on variable change of {geri-sayim_basliyor}:
{geri-sayim_basliyor} is true
loop all players:
loop {Geri_Sayim_Suresi} times:
if {Ses_Efekti_Olsun_mu} is true:
if {level} greater than 0:
wait 1 second
set the loop-player's level to {level}
play "{Ses_Efekti}" specifically to loop-player
remove 1 from {level}
else:
set {geri-sayim_basliyor} to false
else:
if {level} greater than 0:
wait 1 second
set the loop-player's level to {level}
remove 1 from {level}
else:
set {geri-sayim_basliyor} to false
on skript disable:
log "[Geri Sayim] Eklenti de-aktif!"
on join:
add 1 to {oyuncu_sayisi}
if {oyuncu_sayisi} is {Gerekli_Oyuncu_Sayisi}:
set {geri-sayim_basliyor} to true
on quit:
remove 1 from {oyuncu_sayisi}