Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #command for player
- command /coin [<text>]:
- trigger:
- if arg 1 is not set:
- if {coin.%player%} is not set:
- set {coin.%player%} to 0
- send "Your Coin : %{coin.%player%}%"
- stop
- send "%arg 1% Coin = %{coin.%arg 1%}%"
- #command for admin
- command /ecoin [<text>] [<text>] [<text>]:
- trigger:
- if player don't have permission "coin.admin":
- send "You Don't Have &6Coin.admin &fPermission"
- stop
- if arg 1 is not set:
- send "/ecoin <take/give/set> <player> <amount>"
- if arg 1 is "set":
- if arg 2 is not set:
- send "/ecoin <take/give/set> <player> <amount>"
- stop
- if arg 3 is not set:
- send "/ecoin <take/give/set> <player> <amount>"
- stop
- set {_amount} to arg 3 parsed as number
- if {_amount} is not set:
- send "Amount of coin must be a number"
- stop
- set {coin.%arg 2%} to {_amount}
- send "%arg 2% Coins set to %arg 3%"
- stop
- if arg 1 is "give":
- if arg 2 is not set:
- send "/ecoin <take/give/set> <player> <amount>"
- stop
- if arg 3 is not set:
- send "/ecoin <take/give/set> <player> <amount>"
- stop
- set {_amount} to arg 3 parsed as number
- if {_amount} is not set:
- send "Amount of coin must be a number"
- stop
- add {_amount} to {coin.%arg 2%}
- send "%arg 2% Coin = %{coin.%arg 2%}%"
- send "Added %arg 3% Coins to %arg 2% account"
- stop
- if arg 1 is "take":
- if arg 2 is not set:
- send "/ecoin <take/give/set> <player> <amount>"
- stop
- if arg 3 is not set:
- send "/ecoin <take/give/set> <player> <amount>"
- stop
- set {_amount} to arg 3 parsed as number
- if {_amount} is not set:
- send "Amount of coin must be a number"
- stop
- if {coin.%arg 2%} is not set:
- set {coin.%arg 2%} to 0
- if {coin.%arg 2%} is more than or equal to {_amount}:
- subtract {_amount} from {coin.%arg 2%}
- send "%arg 2% Coin = %{coin.%arg 2%}%"
- send "You take %arg 3% Coins from %arg 2% account"
- stop
- send "%arg 2% Coin = %{coin.%arg 2%}%"
- send "%arg 2% Coin is less than %arg 3%"
- stop
- options:
- hargadiamond: 100
- hargarank1: 5000
- #Contoh Penggunaan
- command /beli [<text>]:
- trigger:
- if {coin.%player%} is not set:
- set {coin.%player%} to 0
- if arg 1 is "diamond":
- if {coin.%player%} is more than or equal to {@hargadiamond}:
- give player 1 diamond
- subtract {@hargadiamond} from {coin.%player%}
- send "You Bought 1 diamond with price {@hargadiamond}"
- send "Your Coin Left : %{coin.%player%}%"
- stop
- send "You Don't Have Enough Money To Bought Diamond"
- if arg 1 is "rank1":
- if {coin.%player%} is more than or equal to {@hargarank1}:
- subtract {@hargarank1} from {coin.%player%}
- console command "/manuadd %player% rank1"
- send "You Bought Rank1 with price {@hargarank1}"
- send "Your Coin Left : %{coin.%player%}%"
- stop
- send "You Don't Have Enough Money To Bought rank1"
Advertisement
Add Comment
Please, Sign In to add comment