EmreSHN#4551
command /hapis [<player>] [<integer>]:
permission: jail.yetkisi
permission message: Yetkiniz Yok.
trigger:
if arg-2 is set:
set {jsaniye.%arg-1%} to 0
teleport the arg-1 to {jaill}
send arg-1 title "&aCezalandırıldın"
set {jail.%arg-1%} to true
set {jsaniye.%arg-1%} to {arg-2}
loop arg-2 times:
add -1 to {saniye.%player%}
wait 1 second
teleport the arg-1 to {spawn}
send arg-1 title "&aCezan Bitti"
set {jail.%arg-1%} to false
set {jsaniye.%arg-1%} to 0
else:
send "&aDoğru Kullanım: &6/hapis isim saniye"
command /hapisspawn:
permission: jail.yetkisi
permission message: Yetkiniz Yok.
trigger:
set {jaill} to location of the player
on command:
if {jail.%player%} is true:
cancel event
send player title "&aCezanın Bitmesine &6%{saniye.%player%}% Saniye Kaldı"
/hapisspawn komutuyla jail noktasını belirleyebilirsin.
/hapis <player> <saniye> komutuyla oyuncuya jail atabilirsin.
NOT: Jaili saniye olarak atın. Mesela 10 dakika atacaksan
1 dakika = 60 saniye
10x60 = 600
Yani /hapis player 600 olarak atacaksın.
Kod:command /hapis [<player>] [<integer>]: permission: jail.yetkisi permission message: Yetkiniz Yok. trigger: if arg-2 is set: set {jsaniye.%arg-1%} to 0 teleport the arg-1 to {jaill} send arg-1 title "&aCezalandırıldın" set {jail.%arg-1%} to true set {jsaniye.%arg-1%} to {arg-2} loop arg-2 times: add -1 to {saniye.%player%} wait 1 second teleport the arg-1 to {spawn} send arg-1 title "&aCezan Bitti" set {jail.%arg-1%} to false set {jsaniye.%arg-1%} to 0 else: send "&aDoğru Kullanım: &6/hapis isim saniye" command /hapisspawn: permission: jail.yetkisi permission message: Yetkiniz Yok. trigger: set {jaill} to location of the player on command: if {jail.%player%} is true: cancel event send player title "&aCezanın Bitmesine &6%{saniye.%player%}% Saniye Kaldı"
Büyük bir topluluğun parçası ol, etkinliklere katıl ve özel hediyeler kazanma şansı yakala!