- Katılım
- 28 Ocak 2021
- Mesajlar
- 52
- Elmaslar
- 15
- Puanlar
- 4.030
- Yaş
- 22
- Minecraft
- carlixd
every 1 seconds:
if {oyunbasladi} is true:
set {kalanoyuncular} to size of {sonakalan::*}
add 1 to {gecensure::saniye}
if {gecensure::saniye} is bigger than or equal to 60:
set {gecensure::saniye} to 0
add 1 to {gecensure::dakika}
command /baslat:
permission: op
permission message: Bu komutu kullanmak icin iznin yok!
trigger:
if number of all players is smaller than or equal to 1:
delete {oyunbasladi}
send "&4Yeterli oyuncu olmadığı için oyun başlatılamadı"
else:
set {gecensure::saniye} to 0
set {gecensure::dakika} to 0
set {oyunbasladi} to true
clear {sonakalan::*}
loop all players:
set loop-player's gamemode to survival
set {sonakalan::%loop-player%} to loop-player
on death of a player:
if {oyunbasladi} is true:
execute console command "gamemode spectator %player%"
send "&AÖldüğün için artık izleyici modundasın"
if {sonakalan::%player%} is set:
delete {sonakalan::%player%}
if size of {sonakalan::*} is smaller than or equal to 1:
delete {oyunbasladi}
loop {sonakalan::*}:
send "&a%loop-value% oyunu kazandı!" to all players
set {gecensure::saniye} to 0
set {gecensure::dakika} to 0
on quit:
if {oyunbasladi} is true:
if {sonakalan::%player%} is set:
delete {sonakalan::%player%}
if size of {sonakalan::*} is smaller than or equal to 1:
delete {oyunbasladi}
loop {sonakalan::*}:
send "&a%loop-value% oyunu kazandı!" to all players
set {gecensure::saniye} to 0
set {gecensure::dakika} to 0
on join:
if {oyunbasladi} is true:
execute console command "gamemode spectator %player%"
send "&aOyun çoktan başladığı için izleyici modundasın"
else:
set player's gamemode to adventure
on world change:
if {oyunbasladi} is true:
execute console command "gamemode spectator %player%"
send "&aOyun çoktan başladığı için izleyici modundasın"
else:
set player's gamemode to adventure
Konu Çözülmüştür TeşekkürlerPlaceholderAPI\expansions klasörüne
sana yazdığım bu iki expansionu atıyorsun ve /papi reload komutuyla yeniliyorsun.
Kod:every 1 seconds: if {oyunbasladi} is true: set {kalanoyuncular} to size of {sonakalan::*} add 1 to {gecensure::saniye} if {gecensure::saniye} is bigger than or equal to 60: set {gecensure::saniye} to 0 add 1 to {gecensure::dakika} command /baslat: permission: op permission message: Bu komutu kullanmak icin iznin yok! trigger: if number of all players is smaller than or equal to 1: delete {oyunbasladi} send "&4Yeterli oyuncu olmadığı için oyun başlatılamadı" else: set {gecensure::saniye} to 0 set {gecensure::dakika} to 0 set {oyunbasladi} to true clear {sonakalan::*} loop all players: set loop-player's gamemode to survival set {sonakalan::%loop-player%} to loop-player on death of a player: if {oyunbasladi} is true: execute console command "gamemode spectator %player%" send "&AÖldüğün için artık izleyici modundasın" if {sonakalan::%player%} is set: delete {sonakalan::%player%} if size of {sonakalan::*} is smaller than or equal to 1: delete {oyunbasladi} loop {sonakalan::*}: send "&a%loop-value% oyunu kazandı!" to all players set {gecensure::saniye} to 0 set {gecensure::dakika} to 0 on quit: if {oyunbasladi} is true: if {sonakalan::%player%} is set: delete {sonakalan::%player%} if size of {sonakalan::*} is smaller than or equal to 1: delete {oyunbasladi} loop {sonakalan::*}: send "&a%loop-value% oyunu kazandı!" to all players set {gecensure::saniye} to 0 set {gecensure::dakika} to 0 on join: if {oyunbasladi} is true: execute console command "gamemode spectator %player%" send "&aOyun çoktan başladığı için izleyici modundasın" else: set player's gamemode to adventure on world change: if {oyunbasladi} is true: execute console command "gamemode spectator %player%" send "&aOyun çoktan başladığı için izleyici modundasın" else: set player's gamemode to adventure
bu kodu isteğine göre hazırladım önceki attığın skriptinle değiştiriyorsun.
En sonunda ise asb eklentinin scoreboard dosyasına istediğin yerlere şu şekilde geçiriyorsun:
lav yüksekliği -> %theFIL%
geçen süre -> %bdskript_gecensure::dakika%:%bdskript_gecensure::saniye%
kalanoyuncu -> %bdskript_{kalanoyuncular}%