MrBerkayWinner
Demir Cevheri Gibiyim
Kod:
command /haciz [<offlineplayer>]:
permission: bekci.sk
trigger:
set {haciz::%arg-1%} to 86400
send "&c%arg-1% adlı oyuncunun evine haciz getirildi." to player
if arg-1 is online:
send "&cEvine haciz getirildi. Ödemek için /hacizode" to arg-1
else:
set {hacizmesaj::%player%} to true
command /hacizode:
trigger:
if {haciz::%player%} is set:
if player's balance is greater than 999:
remove 1000 from player's balance
send "&cHaciz için 1000TL ödendi" to player
delete {haciz::%player%}
every 1 minute in world "world":
loop all players:
if {haciz::%loop-player%} is bigger than 1:
remove 1 from {haciz::%loop-player%}
else:
delete {haciz::%loop-player%}
if loop-player is online:
execute console command "jail %loop-player% jail1 900"
send "&cHaciz cezanı ödemediğin için hapis ile cezalandırıldın" to loop-player
else:
set {jail::%loop-player%} to true
on join:
if {haciz::%player%} is set:
send "&cHaciz ödemen gerek! Kalan zaman: %{haciz::%player%}% dakika" to player
if {jail::%player%} is set:
send "&cHaciz cezanı ödemediğin için hapis ile cezalandırıldın" to player
execute console command "jail %player% jail1 900"