[İSTEK] Oyuncu Chata Yazı Yazınca Bütün Oyunculara PlaySound Gitmesi

WitherLegend

Lapis Toplayıcısı
En iyi cevaplar
0
Basit arkadaşlar
on chat:
execute console command gibi olucak.
Yani oyuncu chata witherlegend yazdı mesela dawdwadaw yazdı.Skript ile ses oynatıcak o sesi herkes duycak yani.
 

MegaCrafter

Obsidyen Madencisi
En iyi cevaplar
0
PHP:
on chat:
    if %message% is "witherlegend":
        loop all players
        execute console command "/playsound game.potion.smash %loop-player%"

Böyle olabilir belki :emin:
 

MegaCrafter

Obsidyen Madencisi
En iyi cevaplar
0
PHP:
on chat:
    if %message% is "witherlegend":
        if player has permission "x.x":       
            loop all players:
                execute console command "/playsound game.potion.smash %loop-player%"
 
Son düzenleme:

Arrow

Altın Madencisi
En iyi cevaplar
0
çok teşekkürler dostum[DOUBLEPOST=1427740298,1427739566][/DOUBLEPOST]
PHP:
on chat:
        if player has permission x.x:     
                loop all players
                execute console command "/playsound game.potion.smash %loop-player%"

bu kod bu hatayı veriyor

PHP:
[21:30:51 ERROR]: 'permission x.x' is not an item type (chat.sk, line 2: if play
er has permission x.x:')
tırnak işareti içine al "x.x"
 

MegaCrafter

Obsidyen Madencisi
En iyi cevaplar
0
PHP:
[21:35:07 ERROR]: 'loop all players' is not a boolean (yes/no) (chat.sk, line 3:
loop all players')
[21:35:07 ERROR]: There's no loop that matches 'loop-player' (chat.sk, line 4: e
xecute console command "/playsound game.potion.smash %loop-player%"')
[21:35:07 INFO]: [Skript] Encountered 2 errors while reloading chat.sk!
PHP:
on chat:
    if %message% is "witherlegend":
        if player has permission "x.x":       
            loop all players:
                execute console command "/playsound game.potion.smash %loop-player%"
Bide bunu dene?
 

MegaCrafter

Obsidyen Madencisi
En iyi cevaplar
0
bunu kullanmalıyım sadece belirli yazıyı değil istediğini yazınca olmalı
PHP:
on chat:
        if player has permission "x.x":     
                loop all players:
                execute console command "/playsound game.potion.smash %loop-player%"

hata:
PHP:
[21:45:09 WARN]: Empty configuration section! You might want to indent one or mo
re of the subsequent lines to make them belong to this section or remove the col
on at the end of the line if you don't want this line to start a section. (chat.
sk, line 3: loop all players:')
[21:45:09 ERROR]: There's no loop that matches 'loop-player' (chat.sk, line 4: e
xecute console command "/playsound game.potion.smash %loop-player%"')
[21:45:09 INFO]: [Skript] Encountered 1 error while reloading chat.sk!
loop niye çalışmıyor ki? Skript kullanmayı bıraktım ben. Pek bir şey anlayamadım?
 

TheAxiall

Demir Madencisi
En iyi cevaplar
0
çok teşekkürler dostum[DOUBLEPOST=1427740298,1427739566][/DOUBLEPOST]
PHP:
on chat:
        if player has permission x.x:    
                loop all players
                execute console command "/playsound game.potion.smash %loop-player%"

bu kod bu hatayı veriyor

PHP:
[21:30:51 ERROR]: 'permission x.x' is not an item type (chat.sk, line 2: if play
er has permission x.x:')
Tab hatası varmış gibi gözüküyor. Ama olmayabilir de.[DOUBLEPOST=1428039779][/DOUBLEPOST]
Kod:
on chat:
    if player has permission "admin.chat"
        loop all players
        execute console command "/playsound game.potion.smash %loop-player%"
Böyle yaptım çalışıyor mu bilmiyorum mobilden yazamadım :D
 
Üst