Ustalar İçeri Mahkeme Skripti

GGalot01

Zombi Katili
En iyi cevaplar
0
Arkadaşlar RPG sunucu kuruyorum mahkeme skripti lazim skriptte
/mahkemeayarla diyince mahkeme yeri ayarlanacak
rehberler /mahkeme (oyuncuismi) (işlediği suç) (hapiste kalacağı süre)
şeklinde yazacak ve oyuncu ayarlanan bölgeye işinlanacak sonra hakim
konusacak Sayin Gokhan Araba Calma Gerekcesiyle 2 Saat Hapiste Kalacaksin
Gibi Olacak Yapabilirseniz Allah Razı Olsun Elleriniz Dert Görmesin İnşallah
 

Umut Savas

Ne demek yanlış? Ben mi?
En iyi cevaplar
0
PHP:
command mahkeme [<player>] [<number>] [<text>] [<text>]:
 permission: mahkeme
 permission message: yetkin yok
 trigger:
  if arg 1 is set:
   if arg 2 is set:
    if arg 3 is set:
     if arg 4 is set:
      if arg 4 is "saniye":
       set {m.süre.%arg-1%} to arg-2

       if size of {_mahkeme.liste::*} is more than 0:
        set {_tploc} to a random element out of {_mahkeme.liste::*}
        teleport arg-1 to {_tploc}
       broadcast "%arg-1% adlı oyuncu %arg-4% sebebinden %arg-2% %arg-3% içeri atıldı"
      else if arg 4 is "dakika":
       set {m.süre.%arg-1%} to arg-2 * 60

       if size of {_mahkeme.liste::*} is more than 0:
        set {_tploc} to a random element out of {_mahkeme.liste::*}
        teleport arg-1 to {_tploc}
       broadcast "%arg-1% adlı oyuncu %arg-4% sebebinden %arg-2% %arg-3% içeri atıldı"
      else if arg 4 is "saat":
       set {m.süre.%arg-1%} to arg-2 * 3600

       if size of {_mahkeme.liste::*} is more than 0:
        set {_tploc} to a random element out of {_mahkeme.liste::*}
        teleport arg-1 to {_tploc}
       broadcast "%arg-1% adlı oyuncu %arg-4% sebebinden %arg-2% %arg-3% içeri atıldı"
      else if arg 4 is "gün":
       set {m.süre.%arg-1%} to arg-2 * 86400

       if size of {_mahkeme.liste::*} is more than 0:
        set {_tploc} to a random element out of {_mahkeme.liste::*}
        teleport arg-1 to {_tploc}
       broadcast "%arg-1% adlı oyuncu %arg-4% sebebinden %arg-2% %arg-3% içeri atıldı"
      else if arg 4 is "hafta":
       set {m.süre.%arg-1%} to arg-2 * 604800

       if size of {_mahkeme.liste::*} is more than 0:
        set {_tploc} to a random element out of {_mahkeme.liste::*}
        teleport arg-1 to {_tploc}
       broadcast "%arg-1% adlı oyuncu %arg-4% sebebinden %arg-2% %arg-3% içeri atıldı"
      else if arg 4 is "ay":
       set {m.süre.%arg-1%} to arg-2 * 2419200

       if size of {_mahkeme.liste::*} is more than 0:
        set {_tploc} to a random element out of {_mahkeme.liste::*}
        teleport arg-1 to {_tploc}
       broadcast "%arg-1% adlı oyuncu %arg-4% sebebinden %arg-2% %arg-3% içeri atıldı"
      else if arg 4 is "yıl":
       set {m.süre.%arg-1%} to arg-2 * 29030400

       if size of {_mahkeme.liste::*} is more than 0:
        set {_tploc} to a random element out of {_mahkeme.liste::*}
        teleport arg-1 to {_tploc}
       broadcast "%arg-1% adlı oyuncu %arg-4% sebebinden %arg-2% %arg-3% içeri atıldı"
command mahkemeayarla:
 permission: mahkeme
 permission message: yetkin yok
 trigger:
  set {_loc} to player's location
  add {_loc} to {_mahkeme.liste::*}
denemedim.
kullanım:
/mahkemeayarla mahkeme noktası ekler
/mahkeme <oyuncu> <süre"ÖR: 1"> <sürebirimi"ÖR: saniye"> <sebep"ÖR: sigara içti">
 

GGalot01

Zombi Katili
En iyi cevaplar
0
PHP:
command mahkeme [<player>] [<number>] [<text>] [<text>]:
 permission: mahkeme
 permission message: yetkin yok
 trigger:
  if arg 1 is set:
   if arg 2 is set:
    if arg 3 is set:
     if arg 4 is set:
      if arg 4 is "saniye":
       set {m.süre.%arg-1%} to arg-2

       if size of {_mahkeme.liste::*} is more than 0:
        set {_tploc} to a random element out of {_mahkeme.liste::*}
        teleport arg-1 to {_tploc}
       broadcast "%arg-1% adlı oyuncu %arg-4% sebebinden %arg-2% %arg-3% içeri atıldı"
      else if arg 4 is "dakika":
       set {m.süre.%arg-1%} to arg-2 * 60

       if size of {_mahkeme.liste::*} is more than 0:
        set {_tploc} to a random element out of {_mahkeme.liste::*}
        teleport arg-1 to {_tploc}
       broadcast "%arg-1% adlı oyuncu %arg-4% sebebinden %arg-2% %arg-3% içeri atıldı"
      else if arg 4 is "saat":
       set {m.süre.%arg-1%} to arg-2 * 3600

       if size of {_mahkeme.liste::*} is more than 0:
        set {_tploc} to a random element out of {_mahkeme.liste::*}
        teleport arg-1 to {_tploc}
       broadcast "%arg-1% adlı oyuncu %arg-4% sebebinden %arg-2% %arg-3% içeri atıldı"
      else if arg 4 is "gün":
       set {m.süre.%arg-1%} to arg-2 * 86400

       if size of {_mahkeme.liste::*} is more than 0:
        set {_tploc} to a random element out of {_mahkeme.liste::*}
        teleport arg-1 to {_tploc}
       broadcast "%arg-1% adlı oyuncu %arg-4% sebebinden %arg-2% %arg-3% içeri atıldı"
      else if arg 4 is "hafta":
       set {m.süre.%arg-1%} to arg-2 * 604800

       if size of {_mahkeme.liste::*} is more than 0:
        set {_tploc} to a random element out of {_mahkeme.liste::*}
        teleport arg-1 to {_tploc}
       broadcast "%arg-1% adlı oyuncu %arg-4% sebebinden %arg-2% %arg-3% içeri atıldı"
      else if arg 4 is "ay":
       set {m.süre.%arg-1%} to arg-2 * 2419200

       if size of {_mahkeme.liste::*} is more than 0:
        set {_tploc} to a random element out of {_mahkeme.liste::*}
        teleport arg-1 to {_tploc}
       broadcast "%arg-1% adlı oyuncu %arg-4% sebebinden %arg-2% %arg-3% içeri atıldı"
      else if arg 4 is "yıl":
       set {m.süre.%arg-1%} to arg-2 * 29030400

       if size of {_mahkeme.liste::*} is more than 0:
        set {_tploc} to a random element out of {_mahkeme.liste::*}
        teleport arg-1 to {_tploc}
       broadcast "%arg-1% adlı oyuncu %arg-4% sebebinden %arg-2% %arg-3% içeri atıldı"
command mahkemeayarla:
 permission: mahkeme
 permission message: yetkin yok
 trigger:
  set {_loc} to player's location
  add {_loc} to {_mahkeme.liste::*}
denemedim.
kullanım:
/mahkemeayarla mahkeme noktası ekler
/mahkeme <oyuncu> <süre"ÖR: 1"> <sürebirimi"ÖR: saniye"> <sebep"ÖR: sigara içti">
çalişmadi hata var
 

delete_clem

Demir Madencisi
En iyi cevaplar
0
Sanırım command mahkeme de sıkıntı var tam bilmiyorum ama

SM-G532F cihazımdan Tapatalk kullanılarak gönderildi
 

Umut Savas

Ne demek yanlış? Ben mi?
En iyi cevaplar
0
Aynen command /mahkeme olmalı / işareti yok şuanki skriptte

Venus_V3_5580 cihazımdan Tapatalk kullanılarak gönderildi
/ koymadan da oluyor arifcim
çalişmadi hata var
süre kısmını eklememişim 5 dkya ekliyorum

PHP:
command mahkeme [<player>] [<number>] [<text>] [<text>]:
 permission: mahkeme
 permission message: yetkin yok
 trigger:
  if arg 1 is set:
   if arg 2 is set:
    if arg 3 is set:
     if arg 4 is set:
      if arg 3 is "saniye":
       set {m.süre.%arg-1%} to arg-2

       if size of {_mahkeme.liste::*} is more than 0:
        set {_tploc} to a random element out of {_mahkeme.liste::*}
        teleport arg-1 to {_tploc}
       broadcast "%arg-1% adlı oyuncu %arg-4% sebebinden %arg-2% %arg-3% içeri atıldı"
      else if arg 3 is "dakika":
       set {m.süre.%arg-1%} to arg-2 * 60

       if size of {_mahkeme.liste::*} is more than 0:
        set {_tploc} to a random element out of {_mahkeme.liste::*}
        teleport arg-1 to {_tploc}
       broadcast "%arg-1% adlı oyuncu %arg-4% sebebinden %arg-2% %arg-3% içeri atıldı"
      else if arg 3 is "saat":
       set {m.süre.%arg-1%} to arg-2 * 3600

       if size of {_mahkeme.liste::*} is more than 0:
        set {_tploc} to a random element out of {_mahkeme.liste::*}
        teleport arg-1 to {_tploc}
       broadcast "%arg-1% adlı oyuncu %arg-4% sebebinden %arg-2% %arg-3% içeri atıldı"
      else if arg 3 is "gün":
       set {m.süre.%arg-1%} to arg-2 * 86400

       if size of {_mahkeme.liste::*} is more than 0:
        set {_tploc} to a random element out of {_mahkeme.liste::*}
        teleport arg-1 to {_tploc}
       broadcast "%arg-1% adlı oyuncu %arg-4% sebebinden %arg-2% %arg-3% içeri atıldı"
      else if arg 3 is "hafta":
       set {m.süre.%arg-1%} to arg-2 * 604800

       if size of {_mahkeme.liste::*} is more than 0:
        set {_tploc} to a random element out of {_mahkeme.liste::*}
        teleport arg-1 to {_tploc}
       broadcast "%arg-1% adlı oyuncu %arg-4% sebebinden %arg-2% %arg-3% içeri atıldı"
      else if arg 3 is "ay":
       set {m.süre.%arg-1%} to arg-2 * 2419200

       if size of {_mahkeme.liste::*} is more than 0:
        set {_tploc} to a random element out of {_mahkeme.liste::*}
        teleport arg-1 to {_tploc}
       broadcast "%arg-1% adlı oyuncu %arg-4% sebebinden %arg-2% %arg-3% içeri atıldı"
      else if arg 3 is "yıl":
       set {m.süre.%arg-1%} to arg-2 * 29030400

       if size of {_mahkeme.liste::*} is more than 0:
        set {_tploc} to a random element out of {_mahkeme.liste::*}
        teleport arg-1 to {_tploc}
       broadcast "%arg-1% adlı oyuncu %arg-4% sebebinden %arg-2% %arg-3% içeri atıldı"
command mahkemeayarla:
 permission: mahkeme
 permission message: yetkin yok
 trigger:
  set {_loc} to player's location
  add {_loc} to {_mahkeme.liste::*}
every 1 seconds:
 loop all players:
  {m.süre.%loop-player%} is more than 0:
   remove 1 from {sustur.Süre.%loop-player%}
  {m.süre.%loop-player%} is 0:
   delete {m.süre.%loop-player%}
on command:
 {m.süre.%loop-player%} is more than 0:
  cancel event
t
düzenledim ve süre kısmını da ekledim. arg hatasınıda düzelttim
 

GGalot01

Zombi Katili
En iyi cevaplar
0
/ koymadan da oluyor arifcim

süre kısmını eklememişim 5 dkya ekliyorum

PHP:
command mahkeme [<player>] [<number>] [<text>] [<text>]:
 permission: mahkeme
 permission message: yetkin yok
 trigger:
  if arg 1 is set:
   if arg 2 is set:
    if arg 3 is set:
     if arg 4 is set:
      if arg 3 is "saniye":
       set {m.süre.%arg-1%} to arg-2

       if size of {_mahkeme.liste::*} is more than 0:
        set {_tploc} to a random element out of {_mahkeme.liste::*}
        teleport arg-1 to {_tploc}
       broadcast "%arg-1% adlı oyuncu %arg-4% sebebinden %arg-2% %arg-3% içeri atıldı"
      else if arg 3 is "dakika":
       set {m.süre.%arg-1%} to arg-2 * 60

       if size of {_mahkeme.liste::*} is more than 0:
        set {_tploc} to a random element out of {_mahkeme.liste::*}
        teleport arg-1 to {_tploc}
       broadcast "%arg-1% adlı oyuncu %arg-4% sebebinden %arg-2% %arg-3% içeri atıldı"
      else if arg 3 is "saat":
       set {m.süre.%arg-1%} to arg-2 * 3600

       if size of {_mahkeme.liste::*} is more than 0:
        set {_tploc} to a random element out of {_mahkeme.liste::*}
        teleport arg-1 to {_tploc}
       broadcast "%arg-1% adlı oyuncu %arg-4% sebebinden %arg-2% %arg-3% içeri atıldı"
      else if arg 3 is "gün":
       set {m.süre.%arg-1%} to arg-2 * 86400

       if size of {_mahkeme.liste::*} is more than 0:
        set {_tploc} to a random element out of {_mahkeme.liste::*}
        teleport arg-1 to {_tploc}
       broadcast "%arg-1% adlı oyuncu %arg-4% sebebinden %arg-2% %arg-3% içeri atıldı"
      else if arg 3 is "hafta":
       set {m.süre.%arg-1%} to arg-2 * 604800

       if size of {_mahkeme.liste::*} is more than 0:
        set {_tploc} to a random element out of {_mahkeme.liste::*}
        teleport arg-1 to {_tploc}
       broadcast "%arg-1% adlı oyuncu %arg-4% sebebinden %arg-2% %arg-3% içeri atıldı"
      else if arg 3 is "ay":
       set {m.süre.%arg-1%} to arg-2 * 2419200

       if size of {_mahkeme.liste::*} is more than 0:
        set {_tploc} to a random element out of {_mahkeme.liste::*}
        teleport arg-1 to {_tploc}
       broadcast "%arg-1% adlı oyuncu %arg-4% sebebinden %arg-2% %arg-3% içeri atıldı"
      else if arg 3 is "yıl":
       set {m.süre.%arg-1%} to arg-2 * 29030400

       if size of {_mahkeme.liste::*} is more than 0:
        set {_tploc} to a random element out of {_mahkeme.liste::*}
        teleport arg-1 to {_tploc}
       broadcast "%arg-1% adlı oyuncu %arg-4% sebebinden %arg-2% %arg-3% içeri atıldı"
command mahkemeayarla:
 permission: mahkeme
 permission message: yetkin yok
 trigger:
  set {_loc} to player's location
  add {_loc} to {_mahkeme.liste::*}
every 1 seconds:
 loop all players:
  {m.süre.%loop-player%} is more than 0:
   remove 1 from {sustur.Süre.%loop-player%}
  {m.süre.%loop-player%} is 0:
   delete {m.süre.%loop-player%}
on command:
 {m.süre.%loop-player%} is more than 0:
  cancel event
t
düzenledim ve süre kısmını da ekledim. arg hatasınıda düzelttim

An internal error occurred while attempting to perform this command hatasi veriyor :/
 
Üst