Boraciner
Marangoz
- En iyi cevaplar
- 0
Başlık herşeyi açıklıyor.
PHP:
command /maas <text> <player> <text>:
trigger:
if arg-1 is "bak":
send "&a%arg 2% adli oyuncunun maasi %{maas.%arg 2%}% miktarindadir." to player
if arg-1 is "ayarla":
set {maas.%player%} to arg-3
send "&6%arg 2% adli oyuncunun maasi %arg 3% olarak ayarlandi." to player
every 5 minutes:
loop all players:
execute console command "/money give %loop-player% %{maas.%loop-player%}%"
send "&aMaasiniz verildi!" to loop-player
command /emlak <text> <text> <text>:
trigger:
if arg-1 is "fiyat":
set {fiyat.%arg 2%} to %arg 3%
send "&bBasariyla evin fiyati ayarlandi."
if arg-1 is "al"
execute console command "money take %player% %{fiyat.%arg 2%}%"
execute console command "money give KucukKudurdumYT %{fiyat.%arg 2%}%"
execute console command "tellraw KucukKudurdumYT {text:"%player% adli oyuncu %arg 2% adli evi almistir.",color:green}"
execute console command "tellraw 3DGun {text:"%player% adli oyuncu %arg 2% adli evi almistir.",color:green}"
send "&aEmlakciniza bilgi ulasmisdir."
command /hasta <player>:
trigger:
execute console command "/effect %arg 1% clear"
execute console command "/effect %arg 1% minecraft:regeneration 2 255"
execute console command "money take %arg 1%"
execute console command "money give %player%"
execute console command "tellraw %arg 1% {text:"Artik iyisin!",color:green}"
send "&6Tedavi edildi" to player