options:
kozmatik1fiyat: 10000
kozmatik2fiyat: 20000
kozmatik3fiyat: 30000
command /kozmatikal [<text>]:
trigger:
if arg 1 is set:
if arg 1 is "kozmatik1":
if player's balance is equal to or greater than {@kozmatik1fiyat}:
remove {@kozmatik1fiyat} from player's balance
execute console command "manuaddp %player% kozmatik1.permission"
send "Kozmatik 1'i satın aldın."
else:
send "Bakiyeniz yetersiz."
else if arg 1 is "kozmatik2":
if player's balance is equal to or greater than {@kozmatik2fiyat}:
remove {@kozmatik2fiyat} from player's balance
execute console command "manuaddp %player% kozmatik2.permission"
send "Kozmatik 2'yi satın aldın."
else:
send "Bakiyeniz yetersiz."
else if arg 1 is "kozmatik3":
if player's balance is equal to or greater than {@kozmatik3fiyat}:
remove {@kozmatik3fiyat} from player's balance
execute console command "manuaddp %player% kozmatik3.permission"
send "Kozmatik 3'ü satın aldın."
else:
send "Bakiyeniz yetersiz."
else:
send "Ürün adı girilmedi. Ürünler:"
send "kozmatik1, kozmatik2, kozmatik3"