swoxyi
on death:
victim is a player
set the gamemode of the victim to spectator
wait 1 second
set {_alivePlayers::*} to all players where [input's gamemode is survival]
if size of {_alivePlayers::*} is 1:
set {_winner} to first element of {_alivePlayers::*}
execute console command "tm broadcast &7Son hayatta kalan\n &d%{_winner}%"
on join:
if player's gamemode is spectator:
stop trigger
Ercan bey, discord üzerinden görüşelim. "darthstrafe"Aşağıdaki skript size yardımcı olacaktır. Ekranda yazı çıkması için TitleManager eklentisi gerekmektedir.
Kod:on death: victim is a player set the gamemode of the victim to spectator wait 1 second set {_alivePlayers::*} to all players where [input's gamemode is survival] if size of {_alivePlayers::*} is 1: set {_winner} to first element of {_alivePlayers::*} execute console command "tm broadcast &7Son hayatta kalan\n &d%{_winner}%" on join: if player's gamemode is spectator: stop trigger

_thread
command /oyun:
trigger:
{oyun::%uuid of player%} is not set:
add player to {oyuncular::*}
set {oyun::%uuid of player%} to true
send "&a%player%&e oyuna katıldı!" to {oyuncular::*}
teleport player to {lobby}
size of {oyuncular::*} = 10:
set {_index} to 10
loop 10 times:
send "&eOyunun başlamasına %{_index}%" to {oyuncular::*}
remove 1 from {_index}
size of {oyuncular::*} = 10:
wait a seconds
else:
stop loop if size of {oyuncular::*} < 10:
teleport {oyuncular::*} to {oyun-bölgesi}
else:
remove player from {oyuncular::*}
delete {oyun::%uuid of player%}
send "&c%player%&e oyundan ayrıldı!" to {oyuncular::*}
teleport player to {main-lobby}
death of player:
size of {oyuncular::*} = 1:
set {_player} to {oyuncular::*}
finish(attacker)
else:
spect(victim)
function finish(p: player):
spawn wither at location of {_p}
set name of last spawned wither to "&eBu oyunu &6&l%{_p}%&e kazandı!"
make {_p} ride last spawned entity
set the last spawned entity's max health to 100
loop 20 times:
launch ball large coloured red, purple and white fading to light green and pink at {_p}'s location with duration 1
launch creeper coloured red, purple and white fading to light green and pink at {_p}'s location with duration 2
wait 0.5 seconds
push {_p}'s vehicle upwards at speed 1
push {_p}'s vehicle in horizontal direction of {_p} at speed 1
spawn a wither skull at location in front of {_p}'s eyes
kill all entities in radius 250 of {_p} where [name of entity input is "&eBu oyunu &6&l%{_p}%&e kazandı!"]
quit:
remove player from {oyuncular::*}
delete {oyun::%uuid of player%}
remove player from {spect::*}
size of {oyuncular::*} = 1:
set {_player} to {oyuncular::*}
finish(attacker)
function spect(p: player):
send title "Seni kimse göremez!" with subtitle "&eArtık izleyicisiniz!" to {_p} for 3 seconds
set {_p}'s flight mode to true
remove {_p} from {oyuncular::*}
add {_p} to {spect::*}
hide {_p} from all players
hide all players from {_p}
reveal {_p} to {spect::*}
reveal {spect::*} to {_p}
reveal {oyuncular::*} to {_p}
Büyük bir topluluğun parçası ol, etkinliklere katıl ve özel hediyeler kazanma şansı yakala!