- Katılım
- 14 Ağustos 2018
- Mesajlar
- 225
- Elmaslar
- 75
- Puanlar
- 8.975
- Yaş
- 30
- Minecraft
- VolumeGG
oyun başlıyordan sonrası çalışmıyor. Reload atınca herhangi bir problemle karşılaşmıyorum. İstediğim şey Oyunculara rolleri dağıtması sonrasında oyuncular arasından bir belediye başkanı seçmesi. Chance ile yapmadım çünkü aynı rol birden fazla dağıtılabilir o zaman. Yardımcı olur musunuz ?
Sürüm 1.16.5
Sürüm 1.16.5
Kod:
options:
p: &4Vampir &3Köylü &f&l>> &f
on join:
set {%player%::dead} to 0
add 1 to {player.online}
on leave:
remove 1 from {player.online}
command /vkadmin [<text>] [<int>]:
permission: vkadmin
trigger:
if arg-1 is "baslat":
if {player.online} is higher or equal to 2:
send "Oyun başlıyor !" to all players
wait 3 seconds
delete {roller}
delete {bbaskan::*}
add "koylu" to {list2}
add "vampir" to {list2}
loop all players:
add loop-player to {_list::*}
if size of {_list::*} is more than 0:
set {_player} to a random element out of {_list::*}
loop {list2}:
set {_player.rol} to a random element out of {list2}
if {_player.rol} is "vampir":
send "Şanslı *" to {_player}
if {_player.rol} is "koylu":
send "Bahtını sikem" to {_player}
send "Rolün belirlendi ! Rolün : %{_player.rol}%" to {_player}
wait 3 seconds
loop all players:
add loop-player to {_list::*}
if size of {_list::*} is more than 0:
set {bbaskan} to a random element out of {_list::*}
send "Başkan belirlendi : %{bbaskan}%" to all players
wait 10 seconds
teleport all players to {koy.merkezi}
if arg-1 is "koymerkezi":
delete {koymerkezi}
set {koy.merkezi} to player's location
send "Köy Merkezi Ayarlandı." to player
if arg-1 is "evayarla":
if arg-2 is set:
set {evler::%arg-2%} to player's location
send "%arg-2%. evin lokasyonu ayarlandı !" to player
on chat:
if {%player%::dead} is 0:
send "Knk chat kullanma :D Ölünce kullanırsın." to player
cancel event
if {%player%::dead} is 1:
cancel event