Sadien#0002
#Sadien Kese Sistemi
variables:
{kese::%player%} = 0
on first join:
set {kese::%player%} to 0
stop
command /kese [<text>] [<number>]:
trigger:
if arg-1 is set:
if arg-1 is "koy":
if arg-2 is set:
if player's balance is bigger than or equal to arg-2:
if arg-2 is bigger than or equal to 1:
execute console command "money take %player% %arg-2%"
add arg-2 to {kese::%arg-1%}
send "&6Kese &8» &aBaşarıyla Keseye &e%arg-2% &apara konuldu!" to player
else:
send "&6Kese &8» &cMinimum 1 Lira yatırabilirsin." to player
else:
send "&6Kese &8» &cYeterli paran bulunmamakta." to player
else:
send "&6Kese &8» &cKeseye ne kadar para koyacağını belirt." to player
if arg-1 is "al":
if arg-2 is set:
if {kese::%player%} is bigger than or equal to arg-2:
if arg-2 is bigger than or equal to 1:
execute console command "money give %player% %arg-2%"
remove arg-2 from {kese::%player%}
send "&6Kese &8» &aBaşarıyla keseden &e%arg-2% &apara aldın!" to player
else:
send "&6Kese &8» &cMinimum 1 Lira çekebilirsin." to player
else:
send "&6Kese &8» &cKesede bu kadar para yok." to player
else:
send "&6Kese &8» &cÇekeceğin Miktarı belirt." to player
command /kesegönder [<player>] [<number>]:
trigger:
if arg-1 is set:
if arg-2 is set:
if {kese::%player%} is bigger than or equal to arg-2:
if arg-2 is bigger than or equal to 1:
remove arg-2 from {Kese::%player%}
add arg-2 to {Kese::%arg-1%}
send "&6Kese &8» &a%arg-1% &eadlı oyuncuya başarıyla &c%arg-2% &eAltın gönderildi." to player
send "&6Kese &8» &a%player% &eadlı oyuncu sana &c%arg-2% &eAltın gönderdi." to arg-1
else:
send "&6Kese &8» &cGöndereceğiniz Altın miktarı 1 veya daha yüksek bir sayı olmalı."
else:
send "&6Kese &8» &cMaalesef &e%arg-2% &cAltın bulunmuyor... "
else:
send "&6Kese &8» &cBir miktar girmelisiniz."
else:
send "&6Kese &8» &cBir oyuncu ismi girmelisiniz."
Skripti nasıl kullanabilirim yani skript plugini var mıKod:#Sadien Kese Sistemi variables: {kese::%player%} = 0 on first join: set {kese::%player%} to 0 stop command /kese [<text>] [<number>]: trigger: if arg-1 is set: if arg-1 is "koy": if arg-2 is set: if player's balance is bigger than or equal to arg-2: if arg-2 is bigger than or equal to 1: execute console command "money take %player% %arg-2%" add arg-2 to {kese::%arg-1%} send "&6Kese &8» &aBaşarıyla Keseye &e%arg-2% &apara konuldu!" to player else: send "&6Kese &8» &cMinimum 1 Lira yatırabilirsin." to player else: send "&6Kese &8» &cYeterli paran bulunmamakta." to player else: send "&6Kese &8» &cKeseye ne kadar para koyacağını belirt." to player if arg-1 is "al": if arg-2 is set: if {kese::%player%} is bigger than or equal to arg-2: if arg-2 is bigger than or equal to 1: execute console command "money give %player% %arg-2%" remove arg-2 from {kese::%player%} send "&6Kese &8» &aBaşarıyla keseden &e%arg-2% &apara aldın!" to player else: send "&6Kese &8» &cMinimum 1 Lira çekebilirsin." to player else: send "&6Kese &8» &cKesede bu kadar para yok." to player else: send "&6Kese &8» &cÇekeceğin Miktarı belirt." to player command /kesegönder [<player>] [<number>]: trigger: if arg-1 is set: if arg-2 is set: if {kese::%player%} is bigger than or equal to arg-2: if arg-2 is bigger than or equal to 1: remove arg-2 from {Kese::%player%} add arg-2 to {Kese::%arg-1%} send "&6Kese &8» &a%arg-1% &eadlı oyuncuya başarıyla &c%arg-2% &eAltın gönderildi." to player send "&6Kese &8» &a%player% &eadlı oyuncu sana &c%arg-2% &eAltın gönderdi." to arg-1 else: send "&6Kese &8» &cGöndereceğiniz Altın miktarı 1 veya daha yüksek bir sayı olmalı." else: send "&6Kese &8» &cMaalesef &e%arg-2% &cAltın bulunmuyor... " else: send "&6Kese &8» &cBir miktar girmelisiniz." else: send "&6Kese &8» &cBir oyuncu ismi girmelisiniz."
Kodu şimdi yazdım ve hiç denemedim, gördüğüm bugları fixledim. Deneyip geri dönüş yaparsın
Envanterden yüklicezAltın neden envanter de?
Büyük bir topluluğun parçası ol, etkinliklere katıl ve özel hediyeler kazanma şansı yakala!