Çözüldü Report

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

JavaScript:
command /bildir <player> <text>:
trigger:
  loop all players:
   if loop-player have the permission "op":
    send "&bOyuncu %player% bir oyuncuyu bildirdi, %arg-1%" to loop-player
    send "" to loop-player

    send "&a<cmd:/tp %arg-1%>Oyuncuya ışınlanmak için TIKLA!<reset>" to loop-player
    send "&c<cmd:/ryasakla %player% %arg-1%>Oyuncuyu yasaklamak için TIKLA!<reset>" to loop-player
  send "&aBaşarıyla bildirdiniz."

command /ryasakla <player> <player>:
trigger:
  if player have the permission "op":
   execute console command "yasakla %arg-2% 3d"
   execute console command "coinver %arg-1% 200"

   send "&aİşlem başarılı."
  else:
   send "&cYeterli yetkiniz bulunmamakta."
Bir bug var, report eden kişi aynı kişiyi 5 dakika boyunca report edemesin. Böyle bir şey yapabilir misiniz?
 
Bir bug var, report eden kişi aynı kişiyi 5 dakika boyunca report edemesin. Böyle bir şey yapabilir misiniz?

Bug değil özellik daha çok, konuda öyle bir şey belirtmediğiniz için eklemedim. Bu tür özellikler daha çok eklenebilir GUI vs. de yapılabilir sebebe küfür vesaire yazamasın diye kategoriler/sebepler GUI'de hazır sunulabilir fakat bunun için yapılmış eklentiler zaten var ve daha zahmetli olacağından sadece konuda isteneni attım. Bir daha ki sefere konuda istediğiniz her şeyi belirtmeye çalışın.


JavaScript:
command /bildir <player> <text>:
 trigger:
  set {_cooldown} to 5 minutes

  set {_waited} to difference between {report::%command sender%::%arg-1%::lastUsed} and now
  if {_waited} is less than {_cooldown}:
   send "&cLütfen tekrar aynı kişiyi raporlamadan önce &a%difference between {_cooldown} and {_waited}% &cdaha bekleyin"
   stop
  set {report::%command sender%::%arg-1%::lastUsed} to now

  loop all players:
   if loop-player have the permission "op":
    send "&bOyuncu %player% bir oyuncuyu bildirdi, %arg-1%" to loop-player
    send "" to loop-player

    send "&a<cmd:/tp %arg-1%>Oyuncuya ışınlanmak için TIKLA!<reset>" to loop-player
    send "&c<cmd:/ryasakla %player% %arg-1%>Oyuncuyu yasaklamak için TIKLA!<reset>" to loop-player
  send "&aBaşarıyla bildirdiniz."

command /ryasakla <player> <player>:
 trigger:
  if player have the permission "op":
   execute console command "yasakla %arg-2% 3d"
   execute console command "coinver %arg-1% 200"

   send "&aİşlem başarılı."
  else:
   send "&cYeterli yetkiniz bulunmamakta."
 
@Demacor sorun çözüldü ise geri dönüş yap, konu kilitlensin.
 
Bug değil özellik daha çok, konuda öyle bir şey belirtmediğiniz için eklemedim. Bu tür özellikler daha çok eklenebilir GUI vs. de yapılabilir sebebe küfür vesaire yazamasın diye kategoriler/sebepler GUI'de hazır sunulabilir fakat bunun için yapılmış eklentiler zaten var ve daha zahmetli olacağından sadece konuda isteneni attım. Bir daha ki sefere konuda istediğiniz her şeyi belirtmeye çalışın.


JavaScript:
command /bildir <player> <text>:
trigger:
  set {_cooldown} to 5 minutes

  set {_waited} to difference between {report::%command sender%::%arg-1%::lastUsed} and now
  if {_waited} is less than {_cooldown}:
   send "&cLütfen tekrar aynı kişiyi raporlamadan önce &a%difference between {_cooldown} and {_waited}% &cdaha bekleyin"
   stop
  set {report::%command sender%::%arg-1%::lastUsed} to now

  loop all players:
   if loop-player have the permission "op":
    send "&bOyuncu %player% bir oyuncuyu bildirdi, %arg-1%" to loop-player
    send "" to loop-player

    send "&a<cmd:/tp %arg-1%>Oyuncuya ışınlanmak için TIKLA!<reset>" to loop-player
    send "&c<cmd:/ryasakla %player% %arg-1%>Oyuncuyu yasaklamak için TIKLA!<reset>" to loop-player
  send "&aBaşarıyla bildirdiniz."

command /ryasakla <player> <player>:
trigger:
  if player have the permission "op":
   execute console command "yasakla %arg-2% 3d"
   execute console command "coinver %arg-1% 200"

   send "&aİşlem başarılı."
  else:
   send "&cYeterli yetkiniz bulunmamakta."
tekrar report atmaya çalışıldığında 3 minutes 44.seconds fln diyor onu türkçe yapma şansımız yok mu?
 
tekrar report atmaya çalışıldığında 3 minutes 44.seconds fln diyor onu türkçe yapma şansımız yok mu?

Var, bunu deneyin.


JavaScript:
function cevir(ts: timespan):
 set {_t} to "%{_ts}%"

 replace all "minutes" with "dakika" in {_t}
 replace all "and" with "ve" in {_t}

 replace all "seconds" with "saniye" in {_t}

 return {_t}

command /bildir <player> <text>:
 trigger:
  set {_cooldown} to 5 minutes

  set {_waited} to difference between {report::%command sender%::%arg-1%::lastUsed} and now
  if {_waited} is less than {_cooldown}:
   set {_sure} to cevir(difference between {_cooldown} and {_waited})

   send "&cLütfen tekrar aynı kişiyi raporlamadan önce &a%{_sure}% &cdaha bekleyin"
   stop
  set {report::%command sender%::%arg-1%::lastUsed} to now

  loop all players:
   if loop-player have the permission "op":
    send "&bOyuncu %player% bir oyuncuyu bildirdi, %arg-1%" to loop-player
    send "" to loop-player

    send "&a<cmd:/tp %arg-1%>Oyuncuya ışınlanmak için TIKLA!<reset>" to loop-player
    send "&c<cmd:/ryasakla %player% %arg-1%>Oyuncuyu yasaklamak için TIKLA!<reset>" to loop-player
  send "&aBaşarıyla bildirdiniz."

command /ryasakla <player> <player>:
 trigger:
  if player have the permission "op":
   execute console command "yasakla %arg-2% 3d"
   execute console command "coinver %arg-1% 200"

   send "&aİşlem başarılı."
  else:
   send "&cYeterli yetkiniz bulunmamakta."
 
@Demacor Son attığım kodu denediniz mi, konu çözüme kavuştu ise geri dönüş yapın.
 
@Demacor Son attığım kodu denediniz mi, konu çözüme kavuştu ise geri dönüş yapın.
Ekran Resmi 2019-12-06 19.53.35.png

Öncelikle Allah razı olsun, her konuda destek çıktınız. Sizlere çok teşekkür ediyorum.
Son attığınız kod hata verdi.
 
Ekli dosyayı görüntüle 98841
Öncelikle Allah razı olsun, her konuda destek çıktınız. Sizlere çok teşekkür ediyorum.
Son attığınız kod hata verdi.

Ufak bir şeyi unutmuşum, bunu deneyin

JavaScript:
function cevir(ts: timespan) :: text:
 set {_t} to "%{_ts}%"

 replace all "minutes" with "dakika" in {_t}
 replace all "and" with "ve" in {_t}

 replace all "seconds" with "saniye" in {_t}

 return {_t}

command /bildir <player> <text>:
 trigger:
  set {_cooldown} to 5 minutes

  set {_waited} to difference between {report::%command sender%::%arg-1%::lastUsed} and now
  if {_waited} is less than {_cooldown}:
   set {_sure} to cevir(difference between {_cooldown} and {_waited})

   send "&cLütfen tekrar aynı kişiyi raporlamadan önce &a%{_sure}% &cdaha bekleyin"
   stop
  set {report::%command sender%::%arg-1%::lastUsed} to now

  loop all players:
   if loop-player have the permission "op":
    send "&bOyuncu %player% bir oyuncuyu bildirdi, %arg-1%" to loop-player
    send "" to loop-player

    send "&a<cmd:/tp %arg-1%>Oyuncuya ışınlanmak için TIKLA!<reset>" to loop-player
    send "&c<cmd:/ryasakla %player% %arg-1%>Oyuncuyu yasaklamak için TIKLA!<reset>" to loop-player
  send "&aBaşarıyla bildirdiniz."

command /ryasakla <player> <player>:
 trigger:
  if player have the permission "op":
   execute console command "yasakla %arg-2% 3d"
   execute console command "coinver %arg-1% 200"

   send "&aİşlem başarılı."
  else:
   send "&cYeterli yetkiniz bulunmamakta."
 
Ufak bir şeyi unutmuşum, bunu deneyin

JavaScript:
function cevir(ts: timespan) :: text:
set {_t} to "%{_ts}%"

replace all "minutes" with "dakika" in {_t}
replace all "and" with "ve" in {_t}

replace all "seconds" with "saniye" in {_t}

return {_t}

command /bildir <player> <text>:
trigger:
  set {_cooldown} to 5 minutes

  set {_waited} to difference between {report::%command sender%::%arg-1%::lastUsed} and now
  if {_waited} is less than {_cooldown}:
   set {_sure} to cevir(difference between {_cooldown} and {_waited})

   send "&cLütfen tekrar aynı kişiyi raporlamadan önce &a%{_sure}% &cdaha bekleyin"
   stop
  set {report::%command sender%::%arg-1%::lastUsed} to now

  loop all players:
   if loop-player have the permission "op":
    send "&bOyuncu %player% bir oyuncuyu bildirdi, %arg-1%" to loop-player
    send "" to loop-player

    send "&a<cmd:/tp %arg-1%>Oyuncuya ışınlanmak için TIKLA!<reset>" to loop-player
    send "&c<cmd:/ryasakla %player% %arg-1%>Oyuncuyu yasaklamak için TIKLA!<reset>" to loop-player
  send "&aBaşarıyla bildirdiniz."

command /ryasakla <player> <player>:
trigger:
  if player have the permission "op":
   execute console command "yasakla %arg-2% 3d"
   execute console command "coinver %arg-1% 200"

   send "&aİşlem başarılı."
  else:
   send "&cYeterli yetkiniz bulunmamakta."
Ekran Resmi 2019-12-06 20.05.43.png

Böyle bir hata verdi.
 

Garip bir hata, şunu deneyin bir de

JavaScript:
function cevir(ts: timespan) :: text:
 set {_t} to "%{_ts}%"

 replace all "minutes" with "dakika" in {_t}
 replace all "and" with "ve" in {_t}

 replace all "seconds" with "saniye" in {_t}

 return {_t}

command /bildir <player> <text>:
 trigger:
  set {_cooldown} to 5 minutes

  set {_waited} to difference between {report::%command sender%::%arg-1%::lastUsed} and now
  if {_waited} is less than {_cooldown}:
   set {_diff} to difference between {_cooldown} and {_waited}
   set {_sure} to cevir({_diff})

   send "&cLütfen tekrar aynı kişiyi raporlamadan önce &a%{_sure}% &cdaha bekleyin"
   stop
  set {report::%command sender%::%arg-1%::lastUsed} to now

  loop all players:
   if loop-player have the permission "op":
    send "&bOyuncu %player% bir oyuncuyu bildirdi, %arg-1%" to loop-player
    send "" to loop-player

    send "&a<cmd:/tp %arg-1%>Oyuncuya ışınlanmak için TIKLA!<reset>" to loop-player
    send "&c<cmd:/ryasakla %player% %arg-1%>Oyuncuyu yasaklamak için TIKLA!<reset>" to loop-player
  send "&aBaşarıyla bildirdiniz."

command /ryasakla <player> <player>:
 trigger:
  if player have the permission "op":
   execute console command "yasakla %arg-2% 3d"
   execute console command "coinver %arg-1% 200"

   send "&aİşlem başarılı."
  else:
   send "&cYeterli yetkiniz bulunmamakta."
 
Garip bir hata, şunu deneyin bir de

JavaScript:
function cevir(ts: timespan) :: text:
set {_t} to "%{_ts}%"

replace all "minutes" with "dakika" in {_t}
replace all "and" with "ve" in {_t}

replace all "seconds" with "saniye" in {_t}

return {_t}

command /bildir <player> <text>:
trigger:
  set {_cooldown} to 5 minutes

  set {_waited} to difference between {report::%command sender%::%arg-1%::lastUsed} and now
  if {_waited} is less than {_cooldown}:
   set {_diff} to difference between {_cooldown} and {_waited}
   set {_sure} to cevir({_diff})

   send "&cLütfen tekrar aynı kişiyi raporlamadan önce &a%{_sure}% &cdaha bekleyin"
   stop
  set {report::%command sender%::%arg-1%::lastUsed} to now

  loop all players:
   if loop-player have the permission "op":
    send "&bOyuncu %player% bir oyuncuyu bildirdi, %arg-1%" to loop-player
    send "" to loop-player

    send "&a<cmd:/tp %arg-1%>Oyuncuya ışınlanmak için TIKLA!<reset>" to loop-player
    send "&c<cmd:/ryasakla %player% %arg-1%>Oyuncuyu yasaklamak için TIKLA!<reset>" to loop-player
  send "&aBaşarıyla bildirdiniz."

command /ryasakla <player> <player>:
trigger:
  if player have the permission "op":
   execute console command "yasakla %arg-2% 3d"
   execute console command "coinver %arg-1% 200"

   send "&aİşlem başarılı."
  else:
   send "&cYeterli yetkiniz bulunmamakta."
Çok teşekkür ederim. Allah razı olsun. Konu kilit.
 
Garip bir hata, şunu deneyin bir de

JavaScript:
function cevir(ts: timespan) :: text:
set {_t} to "%{_ts}%"

replace all "minutes" with "dakika" in {_t}
replace all "and" with "ve" in {_t}

replace all "seconds" with "saniye" in {_t}

return {_t}

command /bildir <player> <text>:
trigger:
  set {_cooldown} to 5 minutes

  set {_waited} to difference between {report::%command sender%::%arg-1%::lastUsed} and now
  if {_waited} is less than {_cooldown}:
   set {_diff} to difference between {_cooldown} and {_waited}
   set {_sure} to cevir({_diff})

   send "&cLütfen tekrar aynı kişiyi raporlamadan önce &a%{_sure}% &cdaha bekleyin"
   stop
  set {report::%command sender%::%arg-1%::lastUsed} to now

  loop all players:
   if loop-player have the permission "op":
    send "&bOyuncu %player% bir oyuncuyu bildirdi, %arg-1%" to loop-player
    send "" to loop-player

    send "&a<cmd:/tp %arg-1%>Oyuncuya ışınlanmak için TIKLA!<reset>" to loop-player
    send "&c<cmd:/ryasakla %player% %arg-1%>Oyuncuyu yasaklamak için TIKLA!<reset>" to loop-player
  send "&aBaşarıyla bildirdiniz."

command /ryasakla <player> <player>:
trigger:
  if player have the permission "op":
   execute console command "yasakla %arg-2% 3d"
   execute console command "coinver %arg-1% 200"

   send "&aİşlem başarılı."
  else:
   send "&cYeterli yetkiniz bulunmamakta."
Bir soru sorabilir miyim?

Bir skripte perm eklemek istiyorum. Onun kodunu atar mısınız?
 
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