Sol Banner
Sağ Banner

Ufak Skript Konusunda Yardım Edebilecek Varmı

Pyro

Seçkin madenci.
Katılım
22 Ağustos 2020
Mesajlar
36
Tepki puanı
0
Puanları
1,135
Merhabalar Sizden istiyeceğim skript şudur : oyuncular öldüğünde benim belirleyeceğim dünyada doğması yani şöyle arenada öldüyse arenanın spawnında doğucak veya fps areneda öldüyse fps arenanın spawnında doğudacak

2. isteğimde şudur : oyuncular arenadan spawnda ışınlanınca üstündeki itemlerin silinmesi buna üstündeki zırhlarda dair


bu skripti yapabilecek varsa çok minnettar olurum şimdiden teşekkür ediyorum
 

NKNetwork

Seçkin madenci.
Katılım
2 Şubat 2019
Mesajlar
15
Tepki puanı
0
Puanları
1,170
Umarım istediğiniz şey budur:

Kod:
options:
    set {arenadeath::%player%} to false
    set {fpsarenadeath::%player%} to false

on command /arenasetspawn:
    trigger:
        if player has permission "*":
            set {arenaspawn} to location of player
        else:
            send "&cBunun için yetkin yok!" to player
            
on command /fpsarenasetspawn:
    trigger:
        if player has permission "*":
            set {fpsarenaspawn} to location of player
        else:
            send "&cBunun için yetkin yok!" to player
            
on death:
    if player is in world "Arena":
        set {arenadeath::%player%} to true
    if player is in world "FPSArena":
        set {fpsarenadeath::%player%} to true

on respawn:
    if {arenadeath::%player%} is true:
        teleport player to {arenaspawn}
        set {arenadeath::%player%} to false
    if {fpsarenadeath::%player%} is true:
        teleport player to {fpsarenaspawn}
        set {fpsarenadeath::%player%} to false
 

Pyro

Seçkin madenci.
Katılım
22 Ağustos 2020
Mesajlar
36
Tepki puanı
0
Puanları
1,135
Umarım istediğiniz şey budur:

Kod:
options:
    set {arenadeath::%player%} to false
    set {fpsarenadeath::%player%} to false

on command /arenasetspawn:
    trigger:
        if player has permission "*":
            set {arenaspawn} to location of player
        else:
            send "&cBunun için yetkin yok!" to player
           
on command /fpsarenasetspawn:
    trigger:
        if player has permission "*":
            set {fpsarenaspawn} to location of player
        else:
            send "&cBunun için yetkin yok!" to player
           
on death:
    if player is in world "Arena":
        set {arenadeath::%player%} to true
    if player is in world "FPSArena":
        set {fpsarenadeath::%player%} to true

on respawn:
    if {arenadeath::%player%} is true:
        teleport player to {arenaspawn}
        set {arenadeath::%player%} to false
    if {fpsarenadeath::%player%} is true:
        teleport player to {fpsarenaspawn}
        set {fpsarenadeath::%player%} to false
1608114223157.png
 

NKNetwork

Seçkin madenci.
Katılım
2 Şubat 2019
Mesajlar
15
Tepki puanı
0
Puanları
1,170
Son düzenleme:

Pyro

Seçkin madenci.
Katılım
22 Ağustos 2020
Mesajlar
36
Tepki puanı
0
Puanları
1,135
on command yazarken komut " içinde olması gerekiyor diye biliyorum yani örnek vereyim:

command /pandorasetspawn: #bu komut oluştururken
on command "/pandorasetspawn": #buda varolan komutu kullanmayı algılarken demek oluyor.

veya siz bana kullandığınız skripti yollayın ben onu gözden geçireyim.
options:
set {pandoradeath::%player%} to false
set {açikalandeath::%player%} to false

on command /pandorasetspawn:
trigger:
if player has permission "*":
set {arenaspawn} to location of player
else:
send "&cBunun için yetkin yok!" to player

on command /açikalansetspawn:
trigger:
if player has permission "*":
set {fpsarenaspawn} to location of player
else:
send "&cBunun için yetkin yok!" to player

on death:
if player is in world "açikalan":
set {pandoradeath::%player%} to true
if player is in world "pandora":
set {açikalandeath::%player%} to true

on respawn:
if {pandoradeath::%player%} is true:
teleport player to {pandoraspawn}
set {pandoradeath::%player%} to false
if {açikalandeath::%player%} is true:
teleport player to {açikalanspawn}
set {açikalandeath::%player%} to false
 

NKNetwork

Seçkin madenci.
Katılım
2 Şubat 2019
Mesajlar
15
Tepki puanı
0
Puanları
1,170
evet dediğim gibi "on command" değil" command" kullanmanız gerekiyor ve eğer "on command" kullanırsanız "trigger:" kullanmamalısınız. Eğer "on command" yerine "command" yazarsanız çalışacaktır.

bir hata daha alicaksiniz değişkenlerde yani şu şekilde:

dünya adı yerine "ğüşiöç" gibi türkçe harf kullanmadan deneyin. Ben bu kodu size düzenledim buyrun:


Kod:
options:
    set {pandoradeath::%player%} to false
    set {açikalandeath::%player%} to false
    
command /pandorasetspawn:
    trigger:
        if player has permission "*":
            set {arenaspawn} to location of player
        else:
            send "&cBunun için yetkin yok!" to player

on command /açikalansetspawn:
    trigger:
        if player has permission "*":
            set {fpsarenaspawn} to location of player
        else:
            send "&cBunun için yetkin yok!" to player

on death:
    if player is in world "acikalan":
        set {pandoradeath::%player%} to true
    if player is in world "pandora":
        set {açikalandeath::%player%} to true

on respawn:
    if {pandoradeath::%player%} is true:
        teleport player to {pandoraspawn}
        set {pandoradeath::%player%} to false
    if {açikalandeath::%player%} is true:
        teleport player to {açikalanspawn}
        set {açikalandeath::%player%} to false

options:
set {pandoradeath::%player%} to false
set {açikalandeath::%player%} to false

on command /pandorasetspawn:
trigger:
if player has permission "*":
set {arenaspawn} to location of player
else:
send "&cBunun için yetkin yok!" to player

on command /açikalansetspawn:
trigger:
if player has permission "*":
set {fpsarenaspawn} to location of player
else:
send "&cBunun için yetkin yok!" to player

on death:
if player is in world "açikalan":
set {pandoradeath::%player%} to true
if player is in world "pandora":
set {açikalandeath::%player%} to true

on respawn:
if {pandoradeath::%player%} is true:
teleport player to {pandoraspawn}
set {pandoradeath::%player%} to false
if {açikalandeath::%player%} is true:
teleport player to {açikalanspawn}
set {açikalandeath::%player%} to false
 

Yeni Mesajlar


Üst