First you need to make this code:
cmd create test
cmd add test %a% = array(\"\")
cmd add test %b% = array(\"\")
cmd add test %c% = array(\"\")
cmd add test %d% = array(\"\")
cmd add test save %a%
cmd add test save %b%
cmd add test save %c%
cmd add test save %d%
then run the test command once
Second step is make a command like the one below:
1.load %a%
2.load %b%
3.load %c%
4.load %d%
5.let %bal% = playebalance(%p%)
6.if %p% in %a% then goto 100
7.if %p% in %b% then goto 150
8.if %p% in %c% then goto 200
9.if %p% in %d% then goto 250
10.exit
100.if %bal% > 299999 then goto 103
101.message %p% [RankUp] You don't have enough money you need 300,000 to Rank Up
102.exit
103.ascon /takemoney %p% 300000
104.asop /setprefix §6B
105.let %b%[%p%] = %p%
106.let %a%[%p%] = # two space bars after =
107.save %a%
108.save %b%
109.message onlineplayers() §e%p% §aRanked Up to B!
110.exit
150.if %bal% > 999999 then goto 153
151.message %p% You don't have enough money you need 1,000,00 to Rank Up
152.exit
153.ascon /takemoney %p% 1000000
154.asop /setprefix §6C
155.let %c%[%p%] = %p%
156.let %b%[%p%] = # two space bars after =
157.save %b%
158.save %c%
159.message onlineplayers() §e%p% §aRanked Up to C!
160.exit
200.if %bal% > 2999999 then goto 203
201.message %p% You don't have enough money you need 3,000,000 to Rank Up
202.exit
203.ascon /takemoney %p% 3000000
204.asop /setprefix §6D
205.let %d%[%p%] = %p%
206.let %c%[%p%] = # two space bars after =
207.save %c%
208.save %d%
209.message onlineplayers() §e%p% §aRanked Up to D!
210.exit
250.message %p% §cYou already reached the maximum Rank!
After making a code like the one above^^ You are done!
You can make it up to Z if you want
Credits to Nuxeel for helping me
Dont forget to add Two Space Bars after the "="
If there are any problems feel free to comment down below
cmd create test
cmd add test %a% = array(\"\")
cmd add test %b% = array(\"\")
cmd add test %c% = array(\"\")
cmd add test %d% = array(\"\")
cmd add test save %a%
cmd add test save %b%
cmd add test save %c%
cmd add test save %d%
then run the test command once
Second step is make a command like the one below:
1.load %a%
2.load %b%
3.load %c%
4.load %d%
5.let %bal% = playebalance(%p%)
6.if %p% in %a% then goto 100
7.if %p% in %b% then goto 150
8.if %p% in %c% then goto 200
9.if %p% in %d% then goto 250
10.exit
100.if %bal% > 299999 then goto 103
101.message %p% [RankUp] You don't have enough money you need 300,000 to Rank Up
102.exit
103.ascon /takemoney %p% 300000
104.asop /setprefix §6B
105.let %b%[%p%] = %p%
106.let %a%[%p%] = # two space bars after =
107.save %a%
108.save %b%
109.message onlineplayers() §e%p% §aRanked Up to B!
110.exit
150.if %bal% > 999999 then goto 153
151.message %p% You don't have enough money you need 1,000,00 to Rank Up
152.exit
153.ascon /takemoney %p% 1000000
154.asop /setprefix §6C
155.let %c%[%p%] = %p%
156.let %b%[%p%] = # two space bars after =
157.save %b%
158.save %c%
159.message onlineplayers() §e%p% §aRanked Up to C!
160.exit
200.if %bal% > 2999999 then goto 203
201.message %p% You don't have enough money you need 3,000,000 to Rank Up
202.exit
203.ascon /takemoney %p% 3000000
204.asop /setprefix §6D
205.let %d%[%p%] = %p%
206.let %c%[%p%] = # two space bars after =
207.save %c%
208.save %d%
209.message onlineplayers() §e%p% §aRanked Up to D!
210.exit
250.message %p% §cYou already reached the maximum Rank!
After making a code like the one above^^ You are done!
You can make it up to Z if you want
Credits to Nuxeel for helping me
Dont forget to add Two Space Bars after the "="
If there are any problems feel free to comment down below