- Mesajlar
- 1,924
- En iyi cevaplar
- 0
- Beğeniler
- 499
- Puanları
- 1,290
Bu skriptte adam ölüyor yatağın yanına doğuyor sonra adamı spawna ışınlıyor. Nedenini bir türlü çözemedim.
Kod:
Options:
TeleportCountdown: true
CountdownSecond: 3
TpJoin: false
FirstJoinTp: true
BedSupport: true
#About BedSystem: Recommed 1. But if your player's bed near to the spawn change this to 2.
BedSystem: 2
RespawnTp: true
on respawn:
if {spawn} is set:
if {@BedSystem} is not 2:
if {@BedSupport} is true:
if {@RespawnTp} is true:
wait 0.30 seconds
if the distance between the player and {spawn} is smaller than 100:
teleport player to {spawn}
wait 1 second
If location of player is not equal to {_spawnnear}:
teleport player to {spawn}
else:
if {@BedSystem} is not 1:
if {@BedSupport} is true:
if {@RespawnTp} is true:
wait 2 seconds
loop all blocks in radius 10 of player:
if loop-block isn't White Bed or Orange Bed or Magenta Bed or Light Blue Bed or Yellow Bed or Lime Bed or Pink Bed or Gray Bed or Light Gray Bed or Cyan Bed or Purple Bed or Blue Bed or Brown Bed or Green Bed or Red Bed or Black Bed:
teleport player to {spawn}
wait 2 seconds
If location of player is not equal to {_spawnnear}:
teleport player to {spawn}
stop
else:
if {@BedSupport} is false:
if {@RespawnTp} is true:
teleport player to {spawn}
wait 1 second
if the distance between the player and {spawn} isn't smaller than 100:
teleport player to {spawn}