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