Çözüldü Polislere özel sorgu chati

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

Hatalar düzeltilmiştir, deneyiniz.
Kod:
variables:
    {sorgu.%player%} = false
    
command /sorgu [<Player>]:
    trigger:
        if arg-1 is set:
            if player has permission "mainmup.polis":
                set {sorgu.%arg-1%} to true
                send "%arg-1% isimli oyuncu sorguya alındı." to player
                send "%player% isimli polis seni sorguya aldı." to arg-1
                teleport player to {sorgu.dünya}
                teleport arg-1 to {sorgu.dünya}
                
command /sorgubitir [<Player>]:
    trigger:
        if arg-1 is set:
            if player has permission "mainmup.polis":
                set {sorgu.%arg-1%} to false
                send "%arg-1% isimli oyuncu sorgudan çıkarıldı." to player
                send "%player% isimli polis seni sorgudan çıkardı." to arg-1
                teleport player to {spawn}
                teleport arg-1 to {spawn}   
            
command /sorguyer:
    trigger:
        if player has permission "mainmup.yetkili":
            set {sorgu.dünya} to location of player
            send "Sorgu dünyası başarıyla ayarlandı." to player
            
command /spawnyer:
    trigger:
        if player has permission "mainmup.yetkili":
            set {spawn} to location of player
            send "Spawn dünyası başarıyla ayarlandı." to player           
            
on chat:
    if player's world is "sorgu":
        loop all players in player's world:
            if loop-player has permission "mainmup.polis":
                send "( Sorgu ) » %player% > %message%" to loop-player   
                
on teleport:
    if {sorgu.%player%} is true:
        cancel event
        send "Sorguda olduğundan dolayı ışınlanma devre dışı bırakılmıştır." to player
 
Hatalar düzeltilmiştir, deneyiniz.
Kod:
variables:
    {sorgu.%player%} = false
 
command /sorgu [<Player>]:
    trigger:
        if arg-1 is set:
            if player has permission "mainmup.polis":
                set {sorgu.%arg-1%} to true
                send "%arg-1% isimli oyuncu sorguya alındı." to player
                send "%player% isimli polis seni sorguya aldı." to arg-1
                teleport player to {sorgu.dünya}
                teleport arg-1 to {sorgu.dünya}
             
command /sorgubitir [<Player>]:
    trigger:
        if arg-1 is set:
            if player has permission "mainmup.polis":
                set {sorgu.%arg-1%} to false
                send "%arg-1% isimli oyuncu sorgudan çıkarıldı." to player
                send "%player% isimli polis seni sorgudan çıkardı." to arg-1
                teleport player to {spawn}
                teleport arg-1 to {spawn}
         
command /sorguyer:
    trigger:
        if player has permission "mainmup.yetkili":
            set {sorgu.dünya} to location of player
            send "Sorgu dünyası başarıyla ayarlandı." to player
         
command /spawnyer:
    trigger:
        if player has permission "mainmup.yetkili":
            set {spawn} to location of player
            send "Spawn dünyası başarıyla ayarlandı." to player        
         
on chat:
    if player's world is "sorgu":
        loop all players in player's world:
            if loop-player has permission "mainmup.polis":
                send "( Sorgu ) » %player% > %message%" to loop-player
             
on teleport:
    if {sorgu.%player%} is true:
        cancel event
        send "Sorguda olduğundan dolayı ışınlanma devre dışı bırakılmıştır." to player

YETKILI: Küfürlü içerik paylaşmayalım.
abi şimdi de sorgu oluyo ama adamların yazdıkları da bana geliyo benim yazdıklarım da adamlara gidiyo
 
Moderatör tarafından düzenlendi:
YETKILI: Küfürlü içerik paylaşmayalım.
abi şimdi de sorgu oluyo ama adamların yazdıkları da bana geliyo benim yazdıklarım da adamlara gidiyo
Şimdi uyuyacagim yarin sabah ayarlarim.
 
<text> yerine [<player>] kullanabilirsin.
Hey dostum sence neden <player> kullanmadım :?
insanlara akıl vermeye çalışacağına lütfen bu sorumu biraz düşünürsen mutlu olurum....

- bidaha foruma ne zaman girerim bilmem, ben cevabını vereyim player kullanırsan taa sunucudaki oyuncular'ın data'sından isim aratmış gibi olursun (örnektir.) ama text kullanırsan hiçbişiy olmaz, E tabi son sürüm kullanmazsan çalışmayabilir...


- ben yinede çözülmüşünü atayım :p , sanırım kurduğun sürüm biraz eski o yüzden ilk attığımı çalıştıramadın.

Mainmup'ınki çalışmadı çünkü orda perm kontrolü yapıyor, OP larda her perm olacağı için tüm adminlere bu sorgu gidecektir.
e tabi adminlere "-" li perm vererek kolayca çözüleblir ama belki.Nese ilk yazdığımıda gece gece yazmıştım bunuda gece gece yazıp atayım :D

denenmedi.

Not:
Sorguyu başlatmasını istediğin gruba "sorgu.baslat" bitirebilmesini istediğin gruba "sorgu.bitir" yetkisini vermeyi unutma.
Kod:
options:
    mesaj: "%player's display name% → %message%" #sadece isim gözüksün istiyorsanız şunu kullanın "%player% → %message%", %% içindekileri düzenlemeyiniz!
command /sorgu <offlineplayer>:
    permission: sorgu.baslat
    trigger:
        set {sorgu::aktif::%player%} to true
        set {sorgu::aktif::%arg-1%} to true
        add arg-1 to {sorgu::kisi::%player%::*}
        add player to {sorgu::kisi::%arg-1%::*}
   
command /sorgubitir <offlineplayer>:
    permission: sorgu.bitir
    trigger:
        delete {sorgu::aktif::%player%}
        delete {sorgu::aktif::%arg-1%}
        delete {sorgu::kisi::%arg-1%::*}
        delete {sorgu::kisi::%player%::*}

on quit:
    if player's world is "world":
        delete {sorgu::aktif::%player%}
   
on death of player:
    if player's world is "world":
        delete {sorgu::aktif::%victim%}
   
on chat:  
    if player's world is "world":
        if {sorgu::aktif::%player%} is true:
            loop {sorgu::kisi::%player%::*}:
                send {@mesaj} to loop-value
 
Son düzenleme:
Şöyle deneyin bir de
mainmup.polis
yetkisini polislere veriniz.


Olmaz ise
Kod:
variables:
    {sorgu.%player%} = false
    
command /sorgu [<Player>]:
    trigger:
        if arg-1 is set:
            if player has permission "mainmup.polis":
                set {sorgu.%arg-1%} to true
                send "%arg-1% isimli oyuncu sorguya alındı." to player
                send "%player% isimli polis seni sorguya aldı." to arg-1
                teleport player to {sorgu.dünya}
                teleport arg-1 to {sorgu.dünya}
                
command /sorgubitir [<Player>]:
    trigger:
        if arg-1 is set:
            if player has permission "mainmup.polis":
                set {sorgu.%arg-1%} to false
                send "%arg-1% isimli oyuncu sorgudan çıkarıldı." to player
                send "%player% isimli polis seni sorgudan çıkardı." to arg-1
                teleport player to {spawn}
                teleport arg-1 to {spawn}   
            
command /sorguyer:
    trigger:
        if player has permission "mainmup.yetkili":
            set {sorgu.dünya} to location of player
            send "Sorgu dünyası başarıyla ayarlandı." to player
            
command /spawnyer:
    trigger:
        if player has permission "mainmup.yetkili":
            set {spawn} to location of player
            send "Spawn dünyası başarıyla ayarlandı." to player           
            
on chat:
    if player's world is "sorgu":
        cancel event
        loop all players in player's world:
            if loop-player has permission "mainmup.polis":
                send "( Sorgu ) » %player% > %message%" to loop-player   
                
on teleport:
    if {sorgu.%player%} is true:
        cancel event
        send "Sorguda olduğundan dolayı ışınlanma devre dışı bırakılmıştır." to player
 
Şöyle deneyin bir de
mainmup.polis
yetkisini polislere veriniz.


Olmaz ise
Kod:
variables:
    {sorgu.%player%} = false
   
command /sorgu [<Player>]:
    trigger:
        if arg-1 is set:
            if player has permission "mainmup.polis":
                set {sorgu.%arg-1%} to true
                send "%arg-1% isimli oyuncu sorguya alındı." to player
                send "%player% isimli polis seni sorguya aldı." to arg-1
                teleport player to {sorgu.dünya}
                teleport arg-1 to {sorgu.dünya}
               
command /sorgubitir [<Player>]:
    trigger:
        if arg-1 is set:
            if player has permission "mainmup.polis":
                set {sorgu.%arg-1%} to false
                send "%arg-1% isimli oyuncu sorgudan çıkarıldı." to player
                send "%player% isimli polis seni sorgudan çıkardı." to arg-1
                teleport player to {spawn}
                teleport arg-1 to {spawn}  
           
command /sorguyer:
    trigger:
        if player has permission "mainmup.yetkili":
            set {sorgu.dünya} to location of player
            send "Sorgu dünyası başarıyla ayarlandı." to player
           
command /spawnyer:
    trigger:
        if player has permission "mainmup.yetkili":
            set {spawn} to location of player
            send "Spawn dünyası başarıyla ayarlandı." to player          
           
on chat:
    if player's world is "sorgu":
        cancel event
        loop all players in player's world:
            if loop-player has permission "mainmup.polis":
                send "( Sorgu ) » %player% > %message%" to loop-player  
               
on teleport:
    if {sorgu.%player%} is true:
        cancel event
        send "Sorguda olduğundan dolayı ışınlanma devre dışı bırakılmıştır." to player
abi çok güzel çalışıyo bizim yazılar adama gitmiyo ama adamların yazıları bize geliyo
 
Şimdi ise mainmup.polis yetkisi olanlar -/polisol yazarak polis-sorgu sohbetini açabilirler.
Oyuncuların mesajları polise, polislerin mesajı oyunculara gelecektir.

Kod:
variables:
    {sorgu.%player%} = false
  
command /sorgu [<Player>]:
    trigger:
        if arg-1 is set:
            if player has permission "mainmup.polis":
                set {sorgu.%arg-1%} to true
                send "%arg-1% isimli oyuncu sorguya alındı." to player
                send "%player% isimli polis seni sorguya aldı." to arg-1
                teleport player to {sorgu.dünya}
                teleport arg-1 to {sorgu.dünya}
              
command /sorgubitir [<Player>]:
    trigger:
        if arg-1 is set:
            if player has permission "mainmup.polis":
                set {sorgu.%arg-1%} to false
                send "%arg-1% isimli oyuncu sorgudan çıkarıldı." to player
                send "%player% isimli polis seni sorgudan çıkardı." to arg-1
                teleport player to {spawn}
                teleport arg-1 to {spawn} 
          
command /sorguyer:
    trigger:
        if player has permission "mainmup.yetkili":
            set {sorgu.dünya} to location of player
            send "Sorgu dünyası başarıyla ayarlandı." to player
          
command /spawnyer:
    trigger:
        if player has permission "mainmup.yetkili":
            set {spawn} to location of player
            send "Spawn dünyası başarıyla ayarlandı." to player         
          
on chat:
    if player's world is "sorgu":
        cancel event
        if {mainmup.polis.%player%} is false:
            loop all players in player's world:
                if {mainmup.polis.%loop-player%} is true:
                    send "( Sorgu ) » %player% > %message%" to loop-player         
        else:
            loop all players in player's world:
                if {mainmup.polis.%loop-player%} is false:
                    send "( Sorgu ) » %player% > %message%" to loop-player 
                    
command /polisol:
    trigger:
        if player has permission "mainmup.polis":
            set {mainmup.polis.%player%} to true
            send "Başarıyla, polis olundu." to player

 
Şimdi ise mainmup.polis yetkisi olanlar -/polisol yazarak polis-sorgu sohbetini açabilirler.
Oyuncuların mesajları polise, polislerin mesajı oyunculara gelecektir.

Kod:
variables:
    {sorgu.%player%} = false
 
command /sorgu [<Player>]:
    trigger:
        if arg-1 is set:
            if player has permission "mainmup.polis":
                set {sorgu.%arg-1%} to true
                send "%arg-1% isimli oyuncu sorguya alındı." to player
                send "%player% isimli polis seni sorguya aldı." to arg-1
                teleport player to {sorgu.dünya}
                teleport arg-1 to {sorgu.dünya}
             
command /sorgubitir [<Player>]:
    trigger:
        if arg-1 is set:
            if player has permission "mainmup.polis":
                set {sorgu.%arg-1%} to false
                send "%arg-1% isimli oyuncu sorgudan çıkarıldı." to player
                send "%player% isimli polis seni sorgudan çıkardı." to arg-1
                teleport player to {spawn}
                teleport arg-1 to {spawn}
         
command /sorguyer:
    trigger:
        if player has permission "mainmup.yetkili":
            set {sorgu.dünya} to location of player
            send "Sorgu dünyası başarıyla ayarlandı." to player
         
command /spawnyer:
    trigger:
        if player has permission "mainmup.yetkili":
            set {spawn} to location of player
            send "Spawn dünyası başarıyla ayarlandı." to player        
         
on chat:
    if player's world is "sorgu":
        cancel event
        if {mainmup.polis.%player%} is false:
            loop all players in player's world:
                if {mainmup.polis.%loop-player%} is true:
                    send "( Sorgu ) » %player% > %message%" to loop-player        
        else:
            loop all players in player's world:
                if {mainmup.polis.%loop-player%} is false:
                    send "( Sorgu ) » %player% > %message%" to loop-player
                   
command /polisol:
    trigger:
        if player has permission "mainmup.polis":
            set {mainmup.polis.%player%} to true
            send "Başarıyla, polis olundu." to player

bu sefer de bizim yazdıklarımız gelmiyo :/ adamların yazdıkları geliyo :/
 
Sorun çözüldü ise belirtiniz
 
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