Hastahane Skripti (Çok Ufak bir Skript İsteği)

Turkcraft01s

Ağaç Yumruklayıcı
En iyi cevaplar
0
SUNUCU VERSİYONU: 1.13

Şimdi bir oyuncu Ölünce, hareket edemeyecek ve chatte 'Yaralandıgınız için hastahaneye kaldırıldınınız lütfen 1 dakika bekleyin' yazsın. Daha sonra chatte işte 'Taburcu Olmanıza son 30 saniye' aradan yine zaman geçince 'Taburcu Olmanıza son 15 saniye' yazsın sonra taburcu olduktan sonra 'Taburcu Oldunuz oyununa devam edebilirsiniz' mesajı gelecek. Şunuda söyleyeyim oyuncu öldükten sonra başka bir yerde doğsun spawn'da değil, taburcu olduktan sonra spawna ışınlansın



YAPANLARA TEŞEKKÜR EDİYORUM
 

KnightCraft

Taş Madencisi
En iyi cevaplar
4
Kod:
on command:
    {hasta::%player%} is set
    cancel event

Kod:
on death:
    teleport player to {hastane}
    set {hasta::%player%} to true
    send "&cYaralandıgınız için hastahaneye kaldırıldınınız lütfen &a1 dakika &cbekleyin"
    wait 30 seconds
    send "&cTaburcu Olmanıza son &a30 saniye"
    wait 15 seconds
    send "&cTaburcu Olmanıza son &a15 saniye"
    wait 15 seconds
    send "&aTaburcu Oldunuz Oyuna Devam Edebilirsiniz."
    delete {hasta::%player%}
    execute console command "spawn %player%"
    
command /hastaneyap:
    permission: hastane.yap   
    trigger:
        set {hastane} to player's location
        send "&aHastane Ayarlandı."
        
on load:
    delete {hasta::*}
 

Turkcraft01s

Ağaç Yumruklayıcı
En iyi cevaplar
0
Kod:
on command:
    {hasta::%player%} is set
    cancel event

Kod:
on death:
    teleport player to {hastane}
    set {hasta::%player%} to true
    send "&cYaralandıgınız için hastahaneye kaldırıldınınız lütfen &a1 dakika &cbekleyin"
    wait 30 seconds
    send "&cTaburcu Olmanıza son &a30 saniye"
    wait 15 seconds
    send "&cTaburcu Olmanıza son &a15 saniye"
    wait 15 seconds
    send "&aTaburcu Oldunuz Oyuna Devam Edebilirsiniz."
    delete {hasta::%player%}
    execute console command "spawn %player%"
   
command /hastaneyap:
    permission: hastane.yap  
    trigger:
        set {hastane} to player's location
        send "&aHastane Ayarlandı."
       
on load:
    delete {hasta::*}

Kod:
command /hastaneyap:

    permission: hastane.yap 

    trigger:

        set {hastane} to player's location

        send "&aHastane Ayarlandı."

şu komut dışında diğerleri çalışmadı öldükten 1 dakikas onra spawna ışınlıyor ama ölünce yine spawnda doğdurtuyor birde chatte yazı felan çıkmıyor
 

SemihTuna34

Ağaç Yumruklayıcı
En iyi cevaplar
1
Kod:
on command:
    if {hastanede::%player%} is true:
        send "&cHASTANE &8| &cYaralıyken Komut Kullanmakmı? Ölüme Sebep Olabilir!"
        cancel event
        
on death:
    cancel event
    set {hastanede::%player%} to true
    execute console command "effect %player% minecraft:slowless 60 255"
    execute console command "effect %player% minecraft:blindness 60 255"
    send "&cHASTANE &8| &7Taburcu Olmanıza Son &e60 &7Saniye"
    wait 30 seconds
    send "&cHASTANE &8| &7Taburcu Olmanıza Son &e30 &7Saniye"
    wait 15 seconds
    send "&cHASTANE &8| &7Taburcu Olmanıza Son &e15 &7Saniye"
    wait 10 seconds
    send "&cHASTANE &8| &7Taburcu Olmanıza Son &e5 &7Saniye"
    wait 1 seconds
    send "&cHASTANE &8| &7Taburcu Olmanıza Son &e4 &7Saniye"
    wait 1 seconds
    send "&cHASTANE &8| &7Taburcu Olmanıza Son &e3 &7Saniye"
    wait 1 seconds
    send "&cHASTANE &8| &7Taburcu Olmanıza Son &e2 &7Saniye"
    wait 1 seconds
    send "&cHASTANE &8| &7Taburcu Olmanıza Son &e1 &7Saniye"
    wait 1 seconds
    send "&cHASTANE &8| &7Taburcu Oldunuz!"
    set {hastanede::%player%} to false
    execute player command "spawn"
    execute console command "effect %player% clear"

Eğer Sorununuz Çözüldüyse Elmas Bırakmayı Ve Konu Başlığını Çözüldü Diye Değiştirmeyi Unutmayınız.
 

Axel102

Hayalet Avcısı
En iyi cevaplar
6
Kod:
#Spawn
on respawn:
 set player's gamemode to spectator
 set player's fly speed to 0
 teleport player to {hastane}
 loop numbers from 1 to 30:
  wait 1 second
  message "&cYaralandınız %loop-num%/30 saniye sonra canlanacaksınız."
 message "&aTaburcu oldunuz devam edebilirsiniz."
 teleport player to spawn
 set player's gamemode to survival
 set player's fly speed to 0.1

#Quit
on quit:
 player's gamemode = spectator:
  set player's gamemode to survival
  set player's fly speed to 0.1
 
Üst