TURNUVA SKIRPTI (ZOR)

  • Konuyu Başlatan Konuyu Başlatan Prisma
  • Başlangıç tarihi Başlangıç tarihi
  • Görüntüleme 1.074
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

Prisma

HIGH & CHILL
Katılım
7 Nisan 2018
Mesajlar
126
Elmaslar
34
Puan
6.420
Konum
bu seni hiç alakadar etmez
Selamlar Millet

Öncellikle Istediğim Skript Budur;

/turnuvayerleri (1 - 2) yazarak yerleri ayarlacağım.

Simdi /turnuvayap (oyuncuismi) vs (oyuncuismi) yazıcam ve belirlediğim yere gidicekler 1.ci oyuncu "1"ci yere gidicek 2.ci oynucu "2"ci yere gidicek.

sonra [elmas set + elmas kılıc + 5 gapple + olat + cakmak] vericek

ölünce spawn atıcak ama mesela envanterinde 10 demir var ws girince gidicek ölünce spawn atıcak ve o 10 demir gelicek


yapanlar icin teşekkürler!

 
Ben de kullanırım :D +
 
Zor yazmissin da zor degil ki.
 
Kod:
#Turnuva Sistemi
#Author: Kaan Koc

#Oyuncuları ışınlanıcak konumları belirleme

command /konumbelirle [<text>]:
    permission: turnuva.admin
    permission message: &cBu komutu kullanmak icin yeterli izne sahip degilsiniz!
    trigger:
        if arg-1 is "oyuncu1":
            set {turnuva.oyuncu1} to player's location
            message "&cOyuncu 1'nin konumu ayarlandi!" to player
        if arg-1 is "oyuncu2":
            set {turnuva.oyuncu2} to player's location
            message "&cOyuncu 2'nin konumu ayarlandi!" to player
        if arg-1 is "butunoyuncular":
            set {turnuva.allplayers} to player's location
            message "&cTüm oyuncular turnuva başlatılınca buraya cekilicek!" to player
        if arg-1 is "ölenoyuncular":
            set {turnuva.ölenler} to player's location
            message "&cÖlen oyuncular buraya gelicek!" to player
        if arg-1 is "kazananoyuncu":
            set {turnuva.kazanan} to player's location
            message "&cKazanan oyuncular buraya gelicek!" to player
          
          
#Turnuva Baslatma

command /turnuvabaslat:
    permission: turnuva.admin
    permission message: &cBu komutu kullanmak icin yeterli izne sahip degilsiniz!"
    trigger:
        set {turnuva} to "acik"
        message "&cTURNUVA BASLIYOR!!" to all players
        message "&4&l10!" to all players
        message "&4&l9!" to all players
        message "&4&l8!" to all players
        message "&4&l7!" to all players
        message "&4&l6!" to all players
        message "&4&l5!" to all players
        message "&4&l4!" to all players
        message "&4&l3!" to all players
        message "&4&l2!" to all players
        message "&4&l1!" to all players
        message "&cOyuncular cekiliyor!!" to all players
        teleport all players to {turnuva.allplayers}
        message "&cOyuncular cekildi!" to all players
        message "&cYetkili turnuvada kapismalari icin adam belirleyecek lütfen bekleyin!" to all players
  
#Turnuva icin adam secme
  
command /turnuvaadamsec [<player>] [<player>]:
    permission: turnuva.admin
    permission message: &cBu komutu kullanmak icin yeterli izne sahip degilsiniz!"
    trigger:
        if arg-1 is not set:
            message "&c/turnuvaadamsec <oyuncu> <oyuncu>"
        if arg-2 is not set:
            message "&c/turnuvaadamsec <oyuncu> <oyuncu>"
        else:
            message "&cTurnuvada kapismalari icin %arg-1% ve %arg-2% secildi yerlerine cekiliyorlar!" to all players
            wait 3 second
            teleport arg-1 to {turnuva.oyuncu1}
            teleport arg-2 to {turnuva.oyuncu2}
            execute console command "/kitload %arg-1%"
            execute console command "/kitload %arg-2%"
            message "&cIyi kapismalar!" to all players
          
      
      
      
#Ölenleri ölünce gidilicek yere gönderir (Turnuva acikken calisir)
#Kazananıda kazananlar yerine göndericek

on death:
    attacker is a player
    victim is a player
    if {turnuva} is "acik":
        teleport victim to {turnuva.ölenler}
        teleport attacker to {turnuva.kazanan}
      
      

#Turnuva icinde kullanılıcak kit

command /kitload [<player>]:
    permission: turnuva.admin
    trigger:
        loop items in arg-1's inventory:
            remove loop-item from arg-1
        wait 0.1 seconds
        equip arg-1 with all iron armor
        set slot 0 of arg-1 to iron sword
        set slot 1 of arg-1 to flint and steel
        set slot 2 of arg-1 to fishing rod
        set slot 3 of arg-1 to bow
        set slot 8 of arg-1 to 15 of arrow
 
Kod:
#Turnuva Sistemi
#Author: Kaan Koc

#Oyuncuları ışınlanıcak konumları belirleme

command /konumbelirle [<text>]:
    permission: turnuva.admin
    permission message: &cBu komutu kullanmak icin yeterli izne sahip degilsiniz!
    trigger:
        if arg-1 is "oyuncu1":
            set {turnuva.oyuncu1} to player's location
            message "&cOyuncu 1'nin konumu ayarlandi!" to player
        if arg-1 is "oyuncu2":
            set {turnuva.oyuncu2} to player's location
            message "&cOyuncu 2'nin konumu ayarlandi!" to player
        if arg-1 is "butunoyuncular":
            set {turnuva.allplayers} to player's location
            message "&cTüm oyuncular turnuva başlatılınca buraya cekilicek!" to player
        if arg-1 is "ölenoyuncular":
            set {turnuva.ölenler} to player's location
            message "&cÖlen oyuncular buraya gelicek!" to player
        if arg-1 is "kazananoyuncu":
            set {turnuva.kazanan} to player's location
            message "&cKazanan oyuncular buraya gelicek!" to player
         
         
#Turnuva Baslatma

command /turnuvabaslat:
    permission: turnuva.admin
    permission message: &cBu komutu kullanmak icin yeterli izne sahip degilsiniz!"
    trigger:
        set {turnuva} to "acik"
        message "&cTURNUVA BASLIYOR!!" to all players
        message "&4&l10!" to all players
        message "&4&l9!" to all players
        message "&4&l8!" to all players
        message "&4&l7!" to all players
        message "&4&l6!" to all players
        message "&4&l5!" to all players
        message "&4&l4!" to all players
        message "&4&l3!" to all players
        message "&4&l2!" to all players
        message "&4&l1!" to all players
        message "&cOyuncular cekiliyor!!" to all players
        teleport all players to {turnuva.allplayers}
        message "&cOyuncular cekildi!" to all players
        message "&cYetkili turnuvada kapismalari icin adam belirleyecek lütfen bekleyin!" to all players
 
#Turnuva icin adam secme
 
command /turnuvaadamsec [<player>] [<player>]:
    permission: turnuva.admin
    permission message: &cBu komutu kullanmak icin yeterli izne sahip degilsiniz!"
    trigger:
        if arg-1 is not set:
            message "&c/turnuvaadamsec <oyuncu> <oyuncu>"
        if arg-2 is not set:
            message "&c/turnuvaadamsec <oyuncu> <oyuncu>"
        else:
            message "&cTurnuvada kapismalari icin %arg-1% ve %arg-2% secildi yerlerine cekiliyorlar!" to all players
            wait 3 second
            teleport arg-1 to {turnuva.oyuncu1}
            teleport arg-2 to {turnuva.oyuncu2}
            execute console command "/kitload %arg-1%"
            execute console command "/kitload %arg-2%"
            message "&cIyi kapismalar!" to all players
         
     
     
     
#Ölenleri ölünce gidilicek yere gönderir (Turnuva acikken calisir)
#Kazananıda kazananlar yerine göndericek

on death:
    attacker is a player
    victim is a player
    if {turnuva} is "acik":
        teleport victim to {turnuva.ölenler}
        teleport attacker to {turnuva.kazanan}
     
     

#Turnuva icinde kullanılıcak kit

command /kitload [<player>]:
    permission: turnuva.admin
    trigger:
        loop items in arg-1's inventory:
            remove loop-item from arg-1
        wait 0.1 seconds
        equip arg-1 with all iron armor
        set slot 0 of arg-1 to iron sword
        set slot 1 of arg-1 to flint and steel
        set slot 2 of arg-1 to fishing rod
        set slot 3 of arg-1 to bow
        set slot 8 of arg-1 to 15 of arrow
Ölünce Seçtiğimiz Yere Gitmiyor
 
Kod:
options:
    p: &9Realistic &8»
    perm: turnuva.admins
  
command /turnuva [<text>]:
    permission: {@perm}
    trigger:
        if arg-1 isn't set:
            send "&8&l----------------------------------------------------------------&8&l"
            send "{@p} &e/turnuva p1&8/&a1.oyuncunun spawn olacağı yeri belirler."
            send "{@p} &e/turnuva p2&8/&a2.oyuncunun spawn olacağı yeri belirler."
            send "{@p} &e/turnuva allp&8/&aBütün oyuncuların spawn olacağı yeri belirler"
            send "{@p} &e/turnuva attackerp&8/&aKazanan oyuncuların spawn olacağı yeri belirler"
            send "{@p} &e/turnuva başlat&8/&aTurnuvayı başlatır"
            send "{@p} &e/turnuva bitir&8/&aTurnuvayı bitirir"
            send "{@p} &e/turnuvaoyuncu [oyuncu1] [oyuncu2]&8/&aTurnuva için kapıştırılacak oyuncuları seçer"
            send "&8&l----------------------------------------------------------------&8&l"
        if arg-1 is "p1":
            set {turnuva.oyuncu1} to player's location
            message "{@p} &ap1'nin &3spawn yeri belirlendi" to player
        if arg-1 is "p2":
            set {turnuva.oyuncu2} to player's location
            send "{@p} &ap2'nin &3spawn yeri belirlendi" to player
        if arg-1 is "allp":
            set {turnuva.allplayers} to player's location
            send "{@p} &aallp'nin &3spawn yeri belirlendi" to player
        if arg-1 is "attackerp":
            set {turnuva.kazanan} to player's location
            send "{@p} &aattackerp'nin &3spawn yeri belirlendi" to player
        if arg-1 is "başlat":
            set {turnuva.%player%} to true     
            set {toyunda.%player%} to true
            send "{@p} &3Turnuva başladı,oyuncular tplendi !" to all players
            send "{@p} &cTurnuvada yetkili kişi kapıştırılacak oyuncuları belirleyecek lütfen bekleyin." to all players         
            teleport all players to {turnuva.allplayers}
        if arg-1 is "bitir":
            set {turnuva.%player%} to false
            set {toyunda.%player%} to false
            send "&9Realistic &8» &3Turnuva sona ermiştir." to all players
            teleport all players to spawn
            set flight state of all players to false
            execute player command "/unvall off"
command /turnuvaoyuncusec [<player>] [<player>]:
    permission: {@perm}
    trigger:
        if arg-1 is not set:
            send "{@p} &c/turnuvaoyuncu [oyuncu1] [oyuncu2]"
        else:
            send "&9Realistic &8» &3Turnuvada kapışmaları için &c%arg-1% &3ve &c%arg-2% &3adlı oyuncular seçildi !" to all players
            wait 2 second
            teleport arg-1 to {turnuva.oyuncu1}
            teleport arg-2 to {turnuva.oyuncu2}
            set {toyunda.%arg-1%} to true
            set {toyunda.%arg-2%} to true
            execute console command "/§kityükle %arg-1%"
            execute console command "/§kityükle %arg-2%"
            send "{@p} &6Bol Şans !" to arg-1
            send "{@p} &6Bol Şans !" to arg-2
command /§kityükle [<player>]:
    permission: {@perm}
    trigger:
        loop items in arg-1's inventory:
            remove loop-item from arg-1
        wait 0.1 seconds
        equip arg-1 with all iron armor
        set slot 0 of arg-1 to iron sword
        set slot 1 of arg-1 to flint and steel
        set slot 2 of arg-1 to fishing rod
        set slot 3 of arg-1 to bow
        set slot 8 of arg-1 to 16 of arrow
      
on death of player:
    if {turnuva.%player%} is true:
        if {turnuva.%victim%} is true:
            if {turnuva.%attacker%} is true:
                teleport attacker to {turnuva.kazanan}
                send "{@p} &cTurnuvada %attacker% seni öldürdüğü için elendin !" to victim
on death of player:
    if {toyunda.%victim%} is true:
        delete {toyunda.%victim%}
on command:
    if {turnuva.%player%} is true:
        if {toyunda.%player%} is true:
            if command is not "report" or "turnuvaizle izle" or "ping" or "turnuvaizle geridön":
                if player doesn't have the permission "turnuva.komut":
                    cancel event
                    send "{@p} &cTurnuva başlamışken sadece &3/report&8,&3/turnuvaizle&8,&3/ping &ckomutlarını kullanabilirsin"

Çok önceden kodlamış olduğum bir sistem bilgisayarımda varmış da haberim yokmuş.

Not: Sistem eski olduğu için hataları olabilir.
 
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

Hala Discord sunucumuza katılmadın mı?

Büyük bir topluluğun parçası ol, etkinliklere katıl ve özel hediyeler kazanma şansı yakala!

Şimdi Katıl
Üst